summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96f2b2e)
raw | patch | inline | side by side (parent: 96f2b2e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 11:28:01 +0000 (13:28 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 11:30:43 +0000 (13:30 +0200) |
src/utils_dns.c | patch | blob | history |
diff --git a/src/utils_dns.c b/src/utils_dns.c
index dfced5c72c13dfc4bf71938c9e08bda834eb8a56..a1e4222f3cb2180fd1c692b86de0aaafccb82f17 100644 (file)
--- 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))