mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
ntpd: Fix segfault when same IP on multiple interfaces
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Use the protype socket to obtain the IP address for an error message. Using the resultant socket address, a NULL because create_interface() had failed, results in SIGSEGV. To reproduce this bug, ifconfig bridge100 create ifconfig bridge100 10.10.10.10/24 ifconfig bridge101 create ifconfig bridge101 10.10.10.10/24 ntpd -n PR: 291119 MFC after: 3 days
This commit is contained in:
parent
a4aa7df767
commit
ac1f48b4a7
1 changed files with 1 additions and 1 deletions
|
|
@ -1923,7 +1923,7 @@ update_interfaces(
|
|||
|
||||
msyslog(LOG_ERR,
|
||||
"cannot bind address %s",
|
||||
stoa(&ep->sin));
|
||||
stoa(&ep2->sin));
|
||||
}
|
||||
free(ep2);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue