Discard packets which only has data header

This commit is contained in:
Erik Ekman 2009-01-04 18:59:12 +00:00 committed by Erik Ekman
parent cc17083222
commit 78ae87ebc8

View file

@ -233,7 +233,7 @@ tunnel_dns(int tun_fd, int dns_fd)
char in[64*1024]; char in[64*1024];
size_t read; size_t read;
if ((read = read_dns(dns_fd, in, sizeof(in))) <= 0) if ((read = read_dns(dns_fd, in, sizeof(in))) <= 2)
return -1; return -1;
outlen = sizeof(out); outlen = sizeof(out);