diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-03 13:50:31 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-03 13:50:31 +0100 |
commit | 97e528164183c9a9b4768b0d078b3039a1a6ae36 (patch) | |
tree | c7d79ea52ded3ebf2f969c8b0e503cf537195953 | |
parent | e8ce285395d801e551811ed3eb9df25a6d46df0e (diff) | |
download | busybox-w32-97e528164183c9a9b4768b0d078b3039a1a6ae36.tar.gz busybox-w32-97e528164183c9a9b4768b0d078b3039a1a6ae36.tar.bz2 busybox-w32-97e528164183c9a9b4768b0d078b3039a1a6ae36.zip |
ntpd: fix the "are we a server" check in previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 938c7f040..ba666b513 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -2086,7 +2086,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv) | |||
2086 | 2086 | ||
2087 | /* Here we may block */ | 2087 | /* Here we may block */ |
2088 | VERB2 { | 2088 | VERB2 { |
2089 | if (i > ENABLE_FEATURE_NTPD_SERVER) { | 2089 | if (i > (ENABLE_FEATURE_NTPD_SERVER && G.listen_fd != -1)) { |
2090 | /* We wait for at least one reply. | 2090 | /* We wait for at least one reply. |
2091 | * Poll for it, without wasting time for message. | 2091 | * Poll for it, without wasting time for message. |
2092 | * Since replies often come under 1 second, this also | 2092 | * Since replies often come under 1 second, this also |