ntp: don't try to bind acquire socket if port is equal to ntp port
This commit is contained in:
parent
f2c4ab09a8
commit
b717904f9e
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ prepare_socket(int family)
|
||||||
/* Close on exec */
|
/* Close on exec */
|
||||||
UTI_FdSetCloexec(sock_fd);
|
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
|
/* Don't bother binding this socket - we're not fussed what port
|
||||||
number it gets */
|
number it gets */
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue