summaryrefslogtreecommitdiffstats
path: root/source/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-27 23:56:20 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-27 23:56:20 +0000
commit4b72f84cf9bc3f7583318d5dff97257f9dc5b87f (patch)
tree7308ca03d9f6bb8f8fa88fa7010a0b83f4479d9c /source/auth
parent322d8b4c83439261cfd2ff79b557bddb1e784660 (diff)
downloadsamba-4b72f84cf9bc3f7583318d5dff97257f9dc5b87f.tar.gz
samba-4b72f84cf9bc3f7583318d5dff97257f9dc5b87f.tar.xz
samba-4b72f84cf9bc3f7583318d5dff97257f9dc5b87f.zip
Back our volker's patch as was breaking the build.
Volker, I would like to understand what you are trying to do here... I'll trust that it's broken (this code is certainly not well tested) but I do want to keep a close eye on the fixes... Andrew Bartlett
Diffstat (limited to 'source/auth')
-rw-r--r--source/auth/pass_check.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/auth/pass_check.c b/source/auth/pass_check.c
index d98ee96edd6..63918796efb 100644
--- a/source/auth/pass_check.c
+++ b/source/auth/pass_check.c
@@ -609,8 +609,6 @@ NTSTATUS pass_check(const struct passwd *pass, const char *user, const char *pas
if (((!*password) || (!pwlen)) && !lp_null_passwords())
return NT_STATUS_LOGON_FAILURE;
- this_salt[0] = 0;
-
#if defined(WITH_PAM)
/*
@@ -647,10 +645,8 @@ NTSTATUS pass_check(const struct passwd *pass, const char *user, const char *pas
perhaps for IPC password changing requests */
spass = getspnam(pass->pw_name);
- if (spass && spass->sp_pwdp) {
+ if (spass && spass->sp_pwdp)
fstrcpy(this_crypted, spass->sp_pwdp);
- fstrcpy(this_salt, spass->sp_pwdp);
- }
}
#elif defined(IA_UINFO)
{
@@ -709,8 +705,7 @@ NTSTATUS pass_check(const struct passwd *pass, const char *user, const char *pas
#endif
/* extract relevant info */
- if (this_salt[0] == 0)
- fstrcpy(this_salt, pass->pw_passwd);
+ fstrcpy(this_salt, pass->pw_passwd);
#if defined(HAVE_TRUNCATED_SALT)
/* crypt on some platforms (HPUX in particular)