qemu/libcacard
Ray Strode 81b49e8f89 libcacard: don't free sign buffer while sign op is pending
commit 57f97834ef 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: Ray Strode <rstrode@redhat.com>
Reviewed-by: Alon Levy <alon@pobox.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2014-10-28 11:38:18 +01:00
..
cac.c libcacard: don't free sign buffer while sign op is pending 2014-10-28 11:38:18 +01:00
cac.h
card_7816.c
card_7816.h
card_7816t.h
event.c
eventt.h
libcacard.pc.in
libcacard.syms
link_test.c
Makefile
vcard_emul_nss.c
vcard_emul_type.c
vcard_emul_type.h
vcard_emul.h
vcard.c
vcard.h
vcardt_internal.h
vcardt.c
vcardt.h
vevent.h
vreader.c
vreader.h
vreadert.h
vscard_common.h
vscclient.c