From a7ddbbb3f8ebc57ac64f696abf1dd856e9875ad6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 8 Apr 2006 02:49:44 +0000 Subject: r14979: avoid a null ptr deref (This used to be commit b197bee4f6b0a310215620d18b081fca00661803) --- source4/client/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/client/client.c') diff --git a/source4/client/client.c b/source4/client/client.c index ceb949ffd9..b016632fbd 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -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; -- cgit