summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/password.c')
-rw-r--r--source3/smbd/password.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index af9be289c7..1b1bd34bcc 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -1047,6 +1047,7 @@ BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd)
/* extract relevant info */
strcpy(this_user,pass->pw_name);
strcpy(this_salt,pass->pw_passwd);
+ this_salt[2] = 0;
strcpy(this_crypted,pass->pw_passwd);
if (!*this_crypted) {