git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7671f29
)
r486: BUG 1309: fix seg fault caused by trying to strdup() a NULL pointer
author
Gerald Carter
<jerry@samba.org>
Wed, 5 May 2004 02:58:43 +0000
(
02:58
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:51:25 +0000
(10:51 -0500)
(This used to be commit
0e1a6b34f2690da32bf568330575651988d0c965
)
source3/smbd/password.c
patch
|
blob
|
history
diff --git
a/source3/smbd/password.c
b/source3/smbd/password.c
index d15970cbefee3934576c1e0e15b902a7dac04a2f..72292de42271577966b2eb6b9c28ddc4ff29490f 100644
(file)
--- a/
source3/smbd/password.c
+++ b/
source3/smbd/password.c
@@
-488,7
+488,11
@@
BOOL authorise_login(int snum, fstring user, DATA_BLOB password,
/* now check the list of session users */
if (!ok) {
char *auser;
- char *user_list = strdup(session_userlist);
+ char *user_list = NULL;
+
+ if ( session_userlist )
+ user_list = strdup(session_userlist);
+
if (!user_list)
return(False);