summaryrefslogtreecommitdiff
path: root/ntpdc/ntpdc.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-03-23 05:19:00 +0000
committerXin LI <delphij@FreeBSD.org>2017-03-23 05:19:00 +0000
commit07ac48c3644021279e113d530764a231e27490a7 (patch)
tree0cbc5ca54b66605faf74bfd0773111623cfe3d9b /ntpdc/ntpdc.c
parent01b922f62c559f5778a983c365d390371956a214 (diff)
Diffstat (limited to 'ntpdc/ntpdc.c')
-rw-r--r--ntpdc/ntpdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c
index 69fe6a5e8c40..0375d36813cd 100644
--- a/ntpdc/ntpdc.c
+++ b/ntpdc/ntpdc.c
@@ -649,7 +649,7 @@ getresponse(
todiff = (((uint32_t)time(NULL)) - tobase) & 0x7FFFFFFFu;
if ((n > 0) && (todiff > tospan)) {
n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
- n = 0; /* faked timeout return from 'select()'*/
+ n -= n; /* faked timeout return from 'select()'*/
}
if (n == 0) {