2
0
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:
Paul Selkirk
2009-07-16 19:48:45 +00:00
parent 1b12d9993b
commit d453265fd2
2 changed files with 6 additions and 1 deletions

View File

@@ -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