Commit c2c069d4 authored by Gerald Carter's avatar Gerald Carter Committed by Gerald (Jerry) Carter
Browse files

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

(This used to be commit 0e1a6b34f2690da32bf568330575651988d0c965)
parent 7671f29d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);