svn commit: samba r14979 - in branches/SAMBA_4_0/source/client: .
tridge at samba.org
tridge at samba.org
Sat Apr 8 02:50:00 GMT 2006
Author: tridge
Date: 2006-04-08 02:49:44 +0000 (Sat, 08 Apr 2006)
New Revision: 14979
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14979
Log:
avoid a null ptr deref
Modified:
branches/SAMBA_4_0/source/client/client.c
Changeset:
Modified: branches/SAMBA_4_0/source/client/client.c
===================================================================
--- branches/SAMBA_4_0/source/client/client.c 2006-04-08 02:47:42 UTC (rev 14978)
+++ branches/SAMBA_4_0/source/client/client.c 2006-04-08 02:49:44 UTC (rev 14979)
@@ -408,11 +408,13 @@
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;
More information about the samba-cvs
mailing list