diff options
author | Gerald Carter <jerry@samba.org> | 2000-11-21 06:05:08 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-11-21 06:05:08 +0000 |
commit | 14067f9c9ce1ea4d0301c0c8c7ba71278234d1bb (patch) | |
tree | 054419444e66c6c5c38aa11129f96f2763e46267 | |
parent | eb2f9f8c92864038960459b1e285a8e39a311297 (diff) | |
download | samba-14067f9c9ce1ea4d0301c0c8c7ba71278234d1bb.tar.gz samba-14067f9c9ce1ea4d0301c0c8c7ba71278234d1bb.tar.bz2 samba-14067f9c9ce1ea4d0301c0c8c7ba71278234d1bb.zip |
combined 2 if statments which used the same condition
-- jerry
(This used to be commit 445fd1dbd8bb93f56f20b5dd9e9d5b018147b21d)
-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); |