From: Denys Vlasenko Date: Sat, 3 Mar 2012 12:50:31 +0000 (+0100) Subject: ntpd: fix the "are we a server" check in previous commit X-Git-Tag: 1_20_0~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=97e528164183c9a9b4768b0d078b3039a1a6ae36;p=oweals%2Fbusybox.git ntpd: fix the "are we a server" check in previous commit Signed-off-by: Denys Vlasenko --- 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) /* 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