]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler: Restore pam_end() call after auth failure massage
authorabubakar sabir <abubakarsabir924@gmail.com>
Mon, 27 Apr 2026 22:49:31 +0000 (03:49 +0500)
committerabubakar sabir <abubakarsabir924@gmail.com>
Mon, 27 Apr 2026 22:49:31 +0000 (03:49 +0500)
scheduler/auth.c

index a4a6fd18b413969c4f849c7b5e760193f6a948ed..d48a149d889cf107329bde4fde02e553dfaf128e 100644 (file)
@@ -687,6 +687,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
       if (pamerr != PAM_SUCCESS)
       {
   cupsdLogClient(con, CUPSD_LOG_ERROR, "Authentication failed for user \"%s\" (%s)", username, con->http->hostname, pam_strerror(pamh, pamerr));       
+  pam_end(pamh, 0);
        return;
       }