mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
pam_fprintd: Clear the data value before setting it if set
This commit is contained in:
committed by
Benjamin Berg
parent
34a24eac77
commit
a76af6ce71
@ -203,6 +203,11 @@ verify_result (sd_bus_message *m,
|
|||||||
if (debug)
|
if (debug)
|
||||||
pam_syslog (data->pamh, LOG_DEBUG, "Verify result: %s (done: %d)", result, done ? 1 : 0);
|
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) {
|
if (done) {
|
||||||
data->result = strdup (result);
|
data->result = strdup (result);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user