← Commit list

97e528164

Denys Vlasenko
Denys Vlasenko
2012-03-03
FAILED Duration: 209s

Subject

ntpd: fix the "are we a server" check in previous commit

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ntpd.c+1 -1
@@ -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