]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Initialize head of buffers in allocator, just to be sure.
authorTed Lemon <source@isc.org>
Tue, 19 Oct 1999 15:35:16 +0000 (15:35 +0000)
committerTed Lemon <source@isc.org>
Tue, 19 Oct 1999 15:35:16 +0000 (15:35 +0000)
omapip/alloc.c

index 67d32120c624628740775415cb29bad6a3666a0f..11b55b562a3ac492033cb859686f482dacf0ef24 100644 (file)
@@ -151,6 +151,7 @@ isc_result_t omapi_buffer_new (omapi_buffer_t **h,
        status = omapi_buffer_reference (h, t, name);
        if (status != ISC_R_SUCCESS)
                free (t);
+       (*h) -> head = sizeof ((*h) -> buf) - 1;
        return status;
 }