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

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