[openssh-commits] [openssh] branch master updated: don't leak PAM handle on repeat invocations

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Oct 14 14:53:37 AEDT 2025


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 3adc47e16 don't leak PAM handle on repeat invocations
3adc47e16 is described below

commit 3adc47e161901001816045c032fa61e94b0c9426
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Tue Oct 14 14:52:50 2025 +1100

    don't leak PAM handle on repeat invocations
    
    Reported by Casper Dik via bz3882; ok dtucker@
---
 auth-pam.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/auth-pam.c b/auth-pam.c
index 5591f094e..965de2100 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -735,6 +735,7 @@ sshpam_init(struct ssh *ssh, Authctxt *authctxt)
 		/* We already have a PAM context; check if the user matches */
 		if ((sshpam_err = check_pam_user(authctxt)) != PAM_SUCCESS)
 			fatal("PAM user mismatch");
+		return 0;
 	}
 	debug("PAM: initializing for \"%s\" with service \"%s\"", user,
 	    options.pam_service_name);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list