Commit a76af6ce authored by Marco Trevisan's avatar Marco Trevisan Committed by Benjamin Berg
Browse files

pam_fprintd: Clear the data value before setting it if set

parent 34a24eac
......@@ -203,6 +203,11 @@ verify_result (sd_bus_message *m,
if (debug)
pam_syslog (data->pamh, LOG_DEBUG, "Verify result: %s (done: %d)", result, done ? 1 : 0);
if (data->result) {
free (data->result);
data->result = NULL;
if (done) {
data->result = strdup (result);
return 0;
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