aboutsummaryrefslogtreecommitdiff
path: root/src/dns/gnunet-helper-dns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-14 16:33:22 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-14 16:33:22 +0000
commit145b74cc2c4f1af3231fa5841f0675edd586f570 (patch)
treedc1dd9a11bcc909c986b7c9c6d60afb13d71bea2 /src/dns/gnunet-helper-dns.c
parente97ac7d39620723d5ab14387ad32cc1d335c8d04 (diff)
downloadgnunet-145b74cc2c4f1af3231fa5841f0675edd586f570.tar.gz
gnunet-145b74cc2c4f1af3231fa5841f0675edd586f570.zip
-fix
Diffstat (limited to 'src/dns/gnunet-helper-dns.c')
-rw-r--r--src/dns/gnunet-helper-dns.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dns/gnunet-helper-dns.c b/src/dns/gnunet-helper-dns.c
index 759abc89e..1fb1dcfbb 100644
--- a/src/dns/gnunet-helper-dns.c
+++ b/src/dns/gnunet-helper-dns.c
@@ -497,7 +497,7 @@ run (int fd_tun)
497 * We are supposed to read and the buffer is not empty 497 * We are supposed to read and the buffer is not empty
498 * -> select on write to stdout 498 * -> select on write to stdout
499 */ 499 */
500 if (0 != buftun_size) 500 if (0 < buftun_size)
501 FD_SET (1, &fds_w); 501 FD_SET (1, &fds_w);
502 502
503 /* 503 /*
@@ -541,7 +541,10 @@ run (int fd_tun)
541 { 541 {
542 if ( (errno == EINTR) || 542 if ( (errno == EINTR) ||
543 (errno == EAGAIN) ) 543 (errno == EAGAIN) )
544 continue; 544 {
545 buftun_size = 0;
546 continue;
547 }
545 fprintf (stderr, "read-error: %s\n", strerror (errno)); 548 fprintf (stderr, "read-error: %s\n", strerror (errno));
546 return; 549 return;
547 } 550 }