]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix the check in the signal handler code to check if there is an inner
authorShawn Routhier <sar@isc.org>
Wed, 9 Sep 2009 19:05:17 +0000 (19:05 +0000)
committerShawn Routhier <sar@isc.org>
Wed, 9 Sep 2009 19:05:17 +0000 (19:05 +0000)
signal handler before calling it.  Previously we check if there was a
get_value function.

RELNOTES
common/discover.c

index feca625c18dbee8a8ae226d4336e8bfe75b956d2..5181e0eb18b334e1dbf0ef2d105816638028a2e3 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -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
index 6ade7f6290c80306649079446a2c041290a316c6..7e32b6465391eeb44c54c67c9d7b529b9ac9453a 100644 (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)