ntpd: fix the "are we a server" check in previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e8ce285395
commit
97e5281641
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user