author | Alberto Bertogli
<albertito@gmail.com> 2007-06-07 06:10:09 UTC |
committer | Alberto Bertogli
<albertito@gmail.com> 2007-06-07 06:10:09 UTC |
parent | 91ffc7bbda813a858562dbfd8b84ecd879af1fc1 |
nmdb/udp.c | +1 | -3 |
diff --git a/nmdb/udp.c b/nmdb/udp.c index 40d9747..d9140a2 100644 --- a/nmdb/udp.c +++ b/nmdb/udp.c @@ -216,9 +216,7 @@ void udp_recv(int fd, short event, void *arg) rv = recvfrom(fd, buf, bsize, 0, (struct sockaddr *) &clisa, &clilen); - if (rv <= 0) { - /* rv == 0 means "return of an undeliverable message", which - * we ignore; -1 means other error. */ + if (rv < 0) { goto exit; }