cleanup in dnstund.c

This commit is contained in:
Bjorn Andersson 2006-06-06 02:38:56 +00:00
parent 1fd044cbff
commit 4b85a1ece2

View File

@ -72,12 +72,10 @@ tunnel(int tun_fd, int dns_fd)
if(i != 0) { if(i != 0) {
if(FD_ISSET(tun_fd, &fds)) { if(FD_ISSET(tun_fd, &fds)) {
printf("data on tun\n");
read = read_tun(tun_fd, frame, 64*1024); read = read_tun(tun_fd, frame, 64*1024);
if(read > 0) { if(read > 0)
dnsd_queuepacket(frame->data, read - 4); dnsd_queuepacket(frame->data, read - 4);
} }
}
if(FD_ISSET(dns_fd, &fds)) { if(FD_ISSET(dns_fd, &fds)) {
read = dnsd_read(dns_fd, frame->data, 64*1024-4); read = dnsd_read(dns_fd, frame->data, 64*1024-4);
if(read > 0) { if(read > 0) {