mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-02-01 08:00:25 +01:00
pam_fprintd: Clear the data value before setting it if set
This commit is contained in:
parent
34a24eac77
commit
a76af6ce71
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue