1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r14979: avoid a null ptr deref

This commit is contained in:
Andrew Tridgell 2006-04-08 02:49:44 +00:00 committed by Gerald (Jerry) Carter
parent bf867dc789
commit b197bee4f6

View File

@ -408,11 +408,13 @@ static void init_do_list_queue(void)
static void adjust_do_list_queue(void)
{
if (do_list_queue == NULL) return;
/*
* If the starting point of the queue is more than half way through,
* move everything toward the beginning.
*/
if (do_list_queue && (do_list_queue_start == do_list_queue_end))
if (do_list_queue_start == do_list_queue_end)
{
DEBUG(4,("do_list_queue is empty\n"));
do_list_queue_start = do_list_queue_end = 0;