1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

r16248: Fix Coverity ID 297

This commit is contained in:
Volker Lendecke 2006-06-15 10:12:29 +00:00 committed by Gerald (Jerry) Carter
parent b82c95cb43
commit e56e3c19e1

View File

@ -580,6 +580,11 @@ BOOL check_lanman_password(char *user, uchar * pass1,
const uint8 *lanman_pw; const uint8 *lanman_pw;
BOOL ret; BOOL ret;
if ( !(sampass = samu_new(NULL)) ) {
DEBUG(0, ("samu_new() failed!\n"));
return False;
}
become_root(); become_root();
ret = pdb_getsampwnam(sampass, user); ret = pdb_getsampwnam(sampass, user);
unbecome_root(); unbecome_root();