1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source/web
Jeremy Allison 45514fc5d8 Fix use of DLIST_REMOVE as spotted by Constantine Vetoshev <gepardcv@gmail.com>.
This API is unusual in that if used to remove a non-list head it nulls out
the next and prev pointers. This is what you want for debugging (don't want
an entry removed from the list to be still virtually linked into it) but
means there is no consistent idiom for use as the next and prev pointers
get trashed on removal from the list, meaning you must save them yourself.
You can use it one way when deleting everything via the head pointer, as
this preserves the next pointer, but you *must* use it another way when not
deleting everything via the head pointer. Fix all known uses of this (the main
one is in conn_free_internal() and would not free all the private data entries
for vfs modules. The other changes in web/statuspage.c and winbindd_util.c
are not strictly neccessary, as the head pointer is being used, but I've done
them for consistency. Long term we must revisit this as this API is too hard
to use correctly.
Jeremy.
2008-10-01 13:23:36 -07:00
..
cgi.c r17873: Fix possible null deref found by Stanford checker. 2007-10-10 11:38:56 -05:00
diagnose.c r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS. 2007-10-10 12:23:28 -05:00
neg_lang.c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need 2007-10-10 11:19:14 -05:00
startstop.c [GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch. 2007-10-10 15:28:53 -05:00
statuspage.c Fix use of DLIST_REMOVE as spotted by Constantine Vetoshev <gepardcv@gmail.com>. 2008-10-01 13:23:36 -07:00
swat.c [GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch. 2007-10-10 15:28:53 -05:00