Skip to content
Commit 90de7a03 authored by Ray Strode's avatar Ray Strode Committed by Michael Roth
Browse files

libcacard: don't free sign buffer while sign op is pending



commit 57f97834 cleaned up
the cac_applet_pki_process_apdu function to have a single
exit point. Unfortunately, that commit introduced a bug
where the sign buffer can get free'd and nullified while
it's still being used.

This commit corrects the bug by introducing a boolean to
track whether or not the sign buffer should be freed in
the function exit path.

Signed-off-by: default avatarRay Strode <rstrode@redhat.com>
Reviewed-by: default avatarAlon Levy <alon@pobox.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 81b49e8f)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 57248587
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment