ntp: don't try to bind acquire socket if port is equal to ntp port

This commit is contained in:
Miroslav Lichvar 2014-03-25 11:51:40 +01:00
parent f2c4ab09a8
commit b717904f9e

View file

@ -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 {