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:
parent
bf867dc789
commit
b197bee4f6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user