git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1daf81
)
Check paramters for NULL.
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 17 May 2002 14:23:43 +0000
(14:23 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 17 May 2002 14:23:43 +0000
(14:23 +0000)
source/smbd/chgpasswd.c
patch
|
blob
|
history
diff --git
a/source/smbd/chgpasswd.c
b/source/smbd/chgpasswd.c
index eed535cf117955e0a40bac052e80dadd1ab515df..68871deb90cbdf85e44e5e0baac9b774132ee0ae 100644
(file)
--- a/
source/smbd/chgpasswd.c
+++ b/
source/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