pam: Return a fixed string about protocol error if there is no message

This can only happen if fprintd is not adhering to the protocol.
This commit is contained in:
Benjamin Berg 2020-12-04 18:22:04 +01:00
parent 34b21fa917
commit f4eaacd0ec

View file

@ -202,6 +202,10 @@ verify_result (sd_bus_message *m,
}
msg = verify_result_str_to_msg (result, data->is_swipe);
if (!msg) {
data->result = strdup ("Protocol error with fprintd!");
return 0;
}
send_err_msg (data->pamh, msg);
return 0;