From 8298daf686901d2d2b1895c97cdbafc019df20c2 Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Tue, 6 May 2025 22:12:29 +0200 Subject: [PATCH] change magic numbers for constants --- probe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/probe.c b/probe.c index 00a6137..cf55833 100644 --- a/probe.c +++ b/probe.c @@ -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)