Page MenuHomeFreeBSD

D35169.1787955486.diff
No OneTemporary

Size
628 B
Referenced Files
None
Subscribers
None

D35169.1787955486.diff

Index: lib/libpam/modules/pam_exec/pam_exec.c
===================================================================
--- lib/libpam/modules/pam_exec/pam_exec.c
+++ lib/libpam/modules/pam_exec/pam_exec.c
@@ -261,6 +261,14 @@
/* don't prompt, only expose existing token */
rc = pam_get_item(pamh, PAM_AUTHTOK, &item);
authtok = item;
+
+ if (authtok == NULL && rc == PAM_SUCCESS) {
+ openpam_log(PAM_LOG_ERROR,
+ "%s: pam_get_authtok(): %s",
+ func, "authentication token not available");
+ OUT(PAM_SYSTEM_ERR);
+ }
+
} else {
rc = pam_get_authtok(pamh, PAM_AUTHTOK, &authtok, NULL);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 28, 10:18 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29481171
Default Alt Text
D35169.1787955486.diff (628 B)

Event Timeline