2
0
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:
Ted Lemon
2000-06-06 23:47:14 +00:00
parent d0411fbd4d
commit ee3aeca67f

View File

@@ -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. */