projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ce285
)
ntpd: fix the "are we a server" check in previous commit
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Mar 2012 12:50:31 +0000
(13:50 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Mar 2012 12:50:31 +0000
(13:50 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c
patch
|
blob
|
history
diff --git
a/networking/ntpd.c
b/networking/ntpd.c
index 938c7f040bbada5851f5af2cba58be1ffb2162a7..ba666b5134eeb25d2a205d54304504f7ff974712 100644
(file)
--- 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