1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-23 05:26:07 +03:00

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); memcpy(buf, rdata, rlen);
return rlen; return rlen;
} else { } else {