mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r486: BUG 1309: fix seg fault caused by trying to strdup() a NULL pointer
This commit is contained in:
parent
2cbcc07b7b
commit
0e1a6b34f2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user