mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
Ignore ping packets
This commit is contained in:
parent
049cb2eff8
commit
b681e3a0d9
1 changed files with 1 additions and 1 deletions
2
dns.c
2
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 {
|
||||
|
|
Loading…
Reference in a new issue