]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Properly initialize 'last' when removing I/O objects: removing the first
authorDamien Neil <source@isc.org>
Mon, 10 Jul 2000 17:03:38 +0000 (17:03 +0000)
committerDamien Neil <source@isc.org>
Mon, 10 Jul 2000 17:03:38 +0000 (17:03 +0000)
one should no longer croak.

omapip/dispatch.c

index 5d7335bbbcfcd65f5a3efe1ce97c3db1123b0811..ee402aeda8e53cbfa557f341cb77802d096244d3 100644 (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);