summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-06-15 12:14:45 +0000
committerGerald Carter <jerry@samba.org>2006-06-15 12:14:45 +0000
commit7e6fe8e3d3bb8398173778632366303d7ecef37e (patch)
tree4b927e24d293628874d407d2a8f36d90247c7a4a /source/smbd/chgpasswd.c
parentad586149c6ede551f62d3511eba5ab025df1ccbf (diff)
downloadsamba-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.c5
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);