From: Miroslav Lichvar Date: Tue, 25 Mar 2014 10:51:40 +0000 (+0100) Subject: ntp: don't try to bind acquire socket if port is equal to ntp port X-Git-Tag: 1.30-pre1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b717904f9e7078d75714d994f8544bf7b799b487;p=thirdparty%2Fchrony.git ntp: don't try to bind acquire socket if port is equal to ntp port --- diff --git a/acquire.c b/acquire.c index 29003e73..599e7027 100644 --- a/acquire.c +++ b/acquire.c @@ -171,7 +171,7 @@ prepare_socket(int family) /* Close on exec */ UTI_FdSetCloexec(sock_fd); - if (port_number == 0) { + if (port_number == 0 || port_number == CNF_GetNTPPort()) { /* Don't bother binding this socket - we're not fussed what port number it gets */ } else {