mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-12 23:27:15 +03:00
probe.c: Fix Function 'memcmp' is called without explicitly comparing result
This commit is contained in:
parent
9286b55702
commit
d0a016221c
2
probe.c
2
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))
|
if (len < min_data_packet_size + sizeof(empty_message))
|
||||||
return PROBE_AGAIN;
|
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_NEXT;
|
||||||
|
|
||||||
return probe_adb_cnxn_message(&p[sizeof(empty_message)]);
|
return probe_adb_cnxn_message(&p[sizeof(empty_message)]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user