git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a224d
)
r14979: avoid a null ptr deref
author
Andrew Tridgell
<tridge@samba.org>
Sat, 8 Apr 2006 02:49:44 +0000
(
02:49
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:00:50 +0000
(14:00 -0500)
(This used to be commit
b197bee4f6b0a310215620d18b081fca00661803
)
source4/client/client.c
patch
|
blob
|
history
diff --git
a/source4/client/client.c
b/source4/client/client.c
index ceb949ffd9689ef44040730cdbe5ec1a93c7a798..b016632fbdffec0e4aba3d47e867f7aecc0c18fe 100644
(file)
--- 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;