mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
add a null check to avoid primary crash on contact with secondary [rt19705]
This commit is contained in:
@@ -597,7 +597,8 @@ isc_result_t dhcp_failover_link_signal (omapi_object_t *h,
|
||||
omapi_signal ((omapi_object_t *)link -> state_object,
|
||||
"message", link);
|
||||
link -> state = dhcp_flink_message_length_wait;
|
||||
failover_message_dereference (&link -> imsg, MDL);
|
||||
if (link -> imsg)
|
||||
failover_message_dereference (&link -> imsg, MDL);
|
||||
/* XXX This is dangerous because we could get into a tight
|
||||
XXX loop reading input without servicing any other stuff.
|
||||
XXX There needs to be a way to relinquish control but
|
||||
|
Reference in New Issue
Block a user