2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Fix the check in the signal handler code to check if there is an inner

signal handler before calling it.  Previously we check if there was a
get_value function.
This commit is contained in:
Shawn Routhier
2009-09-09 19:05:17 +00:00
parent f02c8db4da
commit 875e99dc30
2 changed files with 4 additions and 1 deletions

View File

@@ -186,6 +186,9 @@ work on other platforms. Please report any problems and suggested fixes to
- Fixed a fenceposting bug when a client had two host records configured,
one using 'uid' and the other using 'hardware ethernet'.
- Fixed the check in the dhcp_interface_signal_handler routine to verify
the existence of the linked signal handler before calling it.
Changes since 4.1.0b1
- A missing "else" in dhcrelay.c could have caused an interface not to

View File

@@ -1559,7 +1559,7 @@ isc_result_t dhcp_interface_signal_handler (omapi_object_t *h,
}
/* Try to find some inner object that can take the value. */
if (h -> inner && h -> inner -> type -> get_value) {
if (h -> inner && h -> inner -> type -> signal_handler) {
status = ((*(h -> inner -> type -> signal_handler))
(h -> inner, name, ap));
if (status == ISC_R_SUCCESS)