2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Properly initialize 'last' when removing I/O objects: removing the first

one should no longer croak.
This commit is contained in:
Damien Neil
2000-07-10 17:03:38 +00:00
parent c1af245e17
commit c3064fe0cf

View File

@@ -122,6 +122,7 @@ isc_result_t omapi_unregister_io_object (omapi_object_t *h)
omapi_io_reference (&ph, obj, MDL);
/* remove from the list of I/O states */
last = &omapi_io_states;
for (p = omapi_io_states.next; p; p = p -> next) {
if (p == obj) {
omapi_io_dereference (&last -> next, MDL);