Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140775694
D35169.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
610 B
Referenced Files
None
Subscribers
None
D35169.diff
View Options
diff --git a/lib/libpam/modules/pam_exec/pam_exec.c b/lib/libpam/modules/pam_exec/pam_exec.c
--- a/lib/libpam/modules/pam_exec/pam_exec.c
+++ b/lib/libpam/modules/pam_exec/pam_exec.c
@@ -261,6 +261,13 @@
/* 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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 28, 10:12 PM (4 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27343525
Default Alt Text
D35169.diff (610 B)
Attached To
Mode
D35169: pam_exec: fix segfault when existing auth token is null on `pam_sm_set_cred`
Attached
Detach File
Event Timeline
Log In to Comment