summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-12-13 11:04:44 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-12-13 11:04:44 +0000
commit17077aef97cf25e3dc0387a529f4c2d6319b4ccc (patch)
treee3f36dc1eeec0015b65c3ce1ab3ba87b6b5b99fc
parent443967a16982c65d0df06de46b678539c3990921 (diff)
Now that we're using select(), if for some odd reason we get an EINTR
reading the packet (shouldn't happen), return EINTR. Previously we could return ZERR_NONE without initializing notice, which is bad.
-rw-r--r--lib/ZhmStat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ZhmStat.c b/lib/ZhmStat.c
index 84e6a82..08d5193 100644
--- a/lib/ZhmStat.c
+++ b/lib/ZhmStat.c
@@ -65,9 +65,5 @@ Code_t ZhmStat(hostaddr, notice)
if (code == 0 || (code < 0 && errno == EINTR) || ZPending() == 0)
return(ZERR_HMDEAD);
- code = ZReceiveNotice(notice, (struct sockaddr_in *) 0);
- if (code != EINTR)
- return(code);
-
- return(ZERR_NONE);
+ return(ZReceiveNotice(notice, (struct sockaddr_in *) 0));
}