]> andersk Git - openssh.git/commitdiff
- (dtucker) [auth2.c] Move start_pam() calls out of if-else block to remove
authordtucker <dtucker>
Sat, 24 Sep 2005 02:43:51 +0000 (02:43 +0000)
committerdtucker <dtucker>
Sat, 24 Sep 2005 02:43:51 +0000 (02:43 +0000)
   duplicate call.  ok djm@

ChangeLog
auth2.c

index b3be8131a5fa842af3151de670ba027675c08fb7..5372a18ce309da2223cc8ec035f34390ead5d6e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20050924
+ - (dtucker) [auth2.c] Move start_pam() calls out of if-else block to remove
+   duplicate call.  ok djm@
+
 20050922
  - (dtucker) [configure.ac] Use -R linker flag for libedit too; patch from
    skeleten at shillest.net.
diff --git a/auth2.c b/auth2.c
index 613b0e2bc9db9a234ba2ca0169ab84bd15256ec8..d255242edb0716b18e91e49769bf6d8fd7c5c276 100644 (file)
--- a/auth2.c
+++ b/auth2.c
@@ -156,21 +156,17 @@ input_userauth_request(int type, u_int32_t seq, void *ctxt)
                if (authctxt->pw && strcmp(service, "ssh-connection")==0) {
                        authctxt->valid = 1;
                        debug2("input_userauth_request: setting up authctxt for %s", user);
-#ifdef USE_PAM
-                       if (options.use_pam)
-                               PRIVSEP(start_pam(authctxt));
-#endif
                } else {
                        logit("input_userauth_request: invalid user %s", user);
                        authctxt->pw = fakepw();
-#ifdef USE_PAM
-                       if (options.use_pam)
-                               PRIVSEP(start_pam(authctxt));
-#endif
 #ifdef SSH_AUDIT_EVENTS
                        PRIVSEP(audit_event(SSH_INVALID_USER));
 #endif
                }
+#ifdef USE_PAM
+               if (options.use_pam)
+                       PRIVSEP(start_pam(authctxt));
+#endif
                setproctitle("%s%s", authctxt->valid ? user : "unknown",
                    use_privsep ? " [net]" : "");
                authctxt->service = xstrdup(service);
This page took 0.219935 seconds and 5 git commands to generate.