summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-17 14:23:43 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-17 14:23:43 +0000
commit6d15066afca3b1024f26548bf2909f7efeaa75db (patch)
treeb6d00749d566f9b7994e6c3e15684f331798525c /source3/smbd
parente4672862fd5aea4aebd92fa286c542a311dfa17b (diff)
downloadsamba-6d15066afca3b1024f26548bf2909f7efeaa75db.tar.gz
samba-6d15066afca3b1024f26548bf2909f7efeaa75db.tar.bz2
samba-6d15066afca3b1024f26548bf2909f7efeaa75db.zip
Check paramters for NULL.
(This used to be commit 078e81530e9bc4e5f0b8e18aff0488386bce29a5)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/chgpasswd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index eed535cf11..68871deb90 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