mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 01:25:07 -05:00
ntp: don't try to bind acquire socket if port is equal to ntp port
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user