From b681e3a0d9bf4479b3986767ee9ed589ddcee2ac Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Tue, 6 Jun 2006 12:59:22 +0000 Subject: [PATCH] Ignore ping packets --- dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns.c b/dns.c index d7e4b0c..b29cf07 100644 --- a/dns.c +++ b/dns.c @@ -349,7 +349,7 @@ dns_read(int fd, char *buf, int buflen) } } - if(type == T_NULL && rlen) { + if(type == T_NULL && rlen > 2) { memcpy(buf, rdata, rlen); return rlen; } else {