diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-06-15 10:12:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:27 -0500 |
commit | e56e3c19e1244e2b7409d57a030ca8b7ec446932 (patch) | |
tree | f757c0ce432f080c959cd0482525726e4fcb756f /source/smbd/chgpasswd.c | |
parent | b82c95cb438b57bb8910e26657f8ffb590fe02df (diff) | |
download | samba-e56e3c19e1244e2b7409d57a030ca8b7ec446932.tar.gz samba-e56e3c19e1244e2b7409d57a030ca8b7ec446932.tar.xz samba-e56e3c19e1244e2b7409d57a030ca8b7ec446932.zip |
r16248: Fix Coverity ID 297
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r-- | source/smbd/chgpasswd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 011122ee575..cd847240ddb 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -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); |