mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
Completely break connection to I/O object when connection is severed.
This commit is contained in:
@@ -234,8 +234,11 @@ isc_result_t omapi_disconnect (omapi_object_t *h,
|
||||
c -> state = omapi_connection_closed;
|
||||
|
||||
/* Disconnect from I/O object, if any. */
|
||||
if (h -> outer)
|
||||
if (h -> outer) {
|
||||
if (h -> outer -> inner)
|
||||
omapi_object_dereference (&h -> outer -> inner, MDL);
|
||||
omapi_object_dereference (&h -> outer, MDL);
|
||||
}
|
||||
|
||||
/* If whatever created us registered a signal handler, send it
|
||||
a disconnect signal. */
|
||||
|
Reference in New Issue
Block a user