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 | 580e9817a2f1201a383b1a0763074e169ef564cc (patch) | |
tree | a0710898d69b1336bad2f0236c8e2de037eef7f8 /source3 | |
parent | 99f271b3cb8c07c28e3ca14fead9942aa103ec8e (diff) | |
download | samba-580e9817a2f1201a383b1a0763074e169ef564cc.tar.gz samba-580e9817a2f1201a383b1a0763074e169ef564cc.tar.bz2 samba-580e9817a2f1201a383b1a0763074e169ef564cc.zip |
r16248: Fix Coverity ID 297
(This used to be commit e56e3c19e1244e2b7409d57a030ca8b7ec446932)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/chgpasswd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 011122ee57..cd847240dd 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/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); |