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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user