chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Import release 0.1.6
[secnet]
/
tun.c
diff --git
a/tun.c
b/tun.c
index 01c0cb8960f942d505ccf8d3bc3d1fd077d2717d..efcf6b6e90e4b9b7dfa5e335df5f8595e5234e03 100644
(file)
--- a/
tun.c
+++ b/
tun.c
@@
-48,6
+48,7
@@
static void tun_afterpoll(void *sst, struct pollfd *fds, int nfds,
struct tun *st=sst;
int l;
+ if (nfds==0) return;
if (fds[0].revents&POLLERR) {
printf("tun_afterpoll: hup!\n");
}