diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-05-17 14:23:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-05-17 14:23:43 +0000 |
commit | 6d15066afca3b1024f26548bf2909f7efeaa75db (patch) | |
tree | b6d00749d566f9b7994e6c3e15684f331798525c /source3/smbd/chgpasswd.c | |
parent | e4672862fd5aea4aebd92fa286c542a311dfa17b (diff) | |
download | samba-6d15066afca3b1024f26548bf2909f7efeaa75db.tar.gz samba-6d15066afca3b1024f26548bf2909f7efeaa75db.tar.xz samba-6d15066afca3b1024f26548bf2909f7efeaa75db.zip |
Check paramters for NULL.
(This used to be commit 078e81530e9bc4e5f0b8e18aff0488386bce29a5)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r-- | source3/smbd/chgpasswd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index eed535cf117..68871deb90c 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -472,6 +472,10 @@ BOOL chgpasswd(const char *name, const char *oldpass, const char *newpass, BOOL struct passwd *pass; + if (!name) { + DEBUG(1, ("NULL username specfied to chgpasswd()!\n")); + } + DEBUG(3, ("Password change for user: %s\n", name)); #if DEBUG_PASSWORD |