From f650fc4ca0d6f044602377b4280aa7174fdba752 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 24 Jul 2016 13:28:01 +0200 Subject: [PATCH] utils_dns.c: unsigned variable can't be negative --- src/utils_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_dns.c b/src/utils_dns.c index dfced5c7..a1e4222f 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -291,7 +291,7 @@ rfc1035NameUnpack(const char *buf, size_t sz, off_t * off, char *name, size_t ns static int loop_detect = 0; if (loop_detect > 2) return 4; /* compression loop */ - if (ns <= 0) + if (ns == 0) return 4; /* probably compression loop */ do { if ((*off) >= ((off_t) sz)) -- 2.30.2