1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r486: BUG 1309: fix seg fault caused by trying to strdup() a NULL pointer

This commit is contained in:
Gerald Carter 2004-05-05 02:58:43 +00:00 committed by Gerald (Jerry) Carter
parent 2cbcc07b7b
commit 0e1a6b34f2

View File

@ -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);