updated the 3.0 branch from the head branch - ready for alpha18
[ira/wip.git] / source3 / smbd / chgpasswd.c
index eed535cf117955e0a40bac052e80dadd1ab515df..68871deb90cbdf85e44e5e0baac9b774132ee0ae 100644 (file)
@@ -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