[PATCH] Fix bug(s) 11624 and 11195

Jeremy Allison jra at samba.org
Wed Dec 16 19:57:50 UTC 2015

We're using a pointer as a DLINK_LIST
head, but not correctly initializing it
as a list_head when setting it up.

A list head should have:

list_head->prev = list_head
list_head->next = NULL


list_head->prev = NULL
list_head->next = NULL

This fixes the initialization to
use the correct macro.

Please review and push if
happy !

(Should fix an old socket
and memory leak in libsmbclient).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-libsmb-Correctly-initialize-the-list-head-when-ke.patch
Type: text/x-diff
Size: 1306 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151216/20ae2634/0001-s3-libsmb-Correctly-initialize-the-list-head-when-ke.diff>

More information about the samba-technical mailing list