HomeFreeBSD

ntpd: Fix segfault when same IP on multiple interfaces

Description

ntpd: Fix segfault when same IP on multiple interfaces

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

Details

Provenance
cyAuthored on Nov 21 2025, 12:16 AM
Parents
rGa4aa7df767e0: mgb.4, muge.4: Use standard HARDWARE introduction
Branches
Unknown
Tags
Unknown