Commit 043fcaaf authored by Benjamin Berg's avatar Benjamin Berg
Browse files

pam_fprintd: Guard against NULL pointer returned by finger_str_to_msg

Otherwise the PAM module will crash trying to send an info message about
the selected print.
parent bf223662
......@@ -249,6 +249,10 @@ verify_finger_selected (sd_bus_message *m,
msg = finger_str_to_msg(finger_name, data->driver, data->is_swipe);
if (!msg) {
data->result = strdup ("Protocol error with fprintd!");
return 0;
if (debug)
pam_syslog (data->pamh, LOG_DEBUG, "verify_finger_selected %s", msg);
send_info_msg (data->pamh, msg);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment