From d0a016221c91f56b13ed090b0cfe78f05bad48f1 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Tue, 9 Apr 2024 23:42:57 +0300 Subject: [PATCH] probe.c: Fix Function 'memcmp' is called without explicitly comparing result --- probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe.c b/probe.c index ba49bf8..00a6137 100644 --- a/probe.c +++ b/probe.c @@ -323,7 +323,7 @@ static int is_adb_protocol(const char *p, ssize_t len, struct sslhcfg_protocols_ if (len < min_data_packet_size + sizeof(empty_message)) return PROBE_AGAIN; - if (memcmp(&p[0], empty_message, sizeof(empty_message))) + if (memcmp(&p[0], empty_message, sizeof(empty_message)) != 0) return PROBE_NEXT; return probe_adb_cnxn_message(&p[sizeof(empty_message)]);