diff options
author | Gerald Carter <jerry@samba.org> | 2006-06-15 12:14:45 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-06-15 12:14:45 +0000 |
commit | 7e6fe8e3d3bb8398173778632366303d7ecef37e (patch) | |
tree | 4b927e24d293628874d407d2a8f36d90247c7a4a /source/smbd/chgpasswd.c | |
parent | ad586149c6ede551f62d3511eba5ab025df1ccbf (diff) | |
download | samba-7e6fe8e3d3bb8398173778632366303d7ecef37e.tar.gz samba-7e6fe8e3d3bb8398173778632366303d7ecef37e.tar.xz samba-7e6fe8e3d3bb8398173778632366303d7ecef37e.zip |
r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)
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); |