Ignore ping packets

This commit is contained in:
Erik Ekman 2006-06-06 12:59:22 +00:00
parent 049cb2eff8
commit b681e3a0d9

2
dns.c
View file

@ -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 {