1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 12:54:16 +01:00

move debug print (and dereference of resp) inside null check

This commit is contained in:
Klas Lindfors 2015-03-04 10:20:40 +01:00
parent c264ae14c1
commit c75a3f0496

View File

@ -382,9 +382,9 @@ display_error(pam_handle_t *pamh, const char *message) {
return retval;
}
D(("conv returned: '%s'", resp->resp));
if (resp)
{
D(("conv returned: '%s'", resp->resp));
if (resp->resp)
free (resp->resp);
free (resp);