summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/password.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index d15970cbef..72292de422 100644
--- 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);