[git commit] ntpd: fix the "are we a server" check in previous commit
Denys Vlasenko
vda.linux at googlemail.com
Sat Mar 3 12:50:31 UTC 2012
commit: http://git.busybox.net/busybox/commit/?id=97e528164183c9a9b4768b0d078b3039a1a6ae36
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/ntpd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 938c7f0..ba666b5 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2086,7 +2086,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
/* Here we may block */
VERB2 {
- if (i > ENABLE_FEATURE_NTPD_SERVER) {
+ if (i > (ENABLE_FEATURE_NTPD_SERVER && G.listen_fd != -1)) {
/* We wait for at least one reply.
* Poll for it, without wasting time for message.
* Since replies often come under 1 second, this also
More information about the busybox-cvs
mailing list