diff options
-rw-r--r-- | source3/smbd/password.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 934b3155f3..a1df5bf7f0 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -326,11 +326,13 @@ BOOL smb_password_check(char *password, unsigned char *part_passwd, unsigned cha unsigned char p21[21]; unsigned char p24[24]; - if (part_passwd == NULL) + if (part_passwd == NULL) + { DEBUG(10,("No password set - allowing access\n")); - /* No password set - always true ! */ - if (part_passwd == NULL) + + /* No password set - always true ! */ return 1; + } memset(p21,'\0',21); memcpy(p21,part_passwd,16); |