From: Damien Neil Date: Mon, 10 Jul 2000 17:03:38 +0000 (+0000) Subject: Properly initialize 'last' when removing I/O objects: removing the first X-Git-Tag: V3-BETA-2-PATCH-1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3064fe0cf9de6101bca9b2b8c3927fa15c8cb58;p=thirdparty%2Fdhcp.git Properly initialize 'last' when removing I/O objects: removing the first one should no longer croak. --- diff --git a/omapip/dispatch.c b/omapip/dispatch.c index 5d7335bbb..ee402aeda 100644 --- a/omapip/dispatch.c +++ b/omapip/dispatch.c @@ -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);