change magic numbers for constants

This commit is contained in:
Yves Rutschle committed 2025-05-06 22:12:29 +02:00
1 parent 168477ea34
commit 8298daf686
1 file changed
+3 -3
+3 -3
View File
@@ -367,12 +367,12 @@ static int is_syslog_protocol(const char *p, ssize_t len, struct sslhcfg_protoco
int res, i, j;
res = sscanf(p, "<%d>", &i);
if (res == 1) return 1;
if (res == 1) return PROBE_MATCH;
res = sscanf(p, "%d <%d>", &i, &j);
if (res == 2) return 1;
if (res == 2) return PROBE_MATCH;
return 0;
return PROBE_NEXT;
}
static int is_teamspeak_protocol(const char *p, ssize_t len, struct sslhcfg_protocols_item* proto)