summaryrefslogtreecommitdiff
path: root/libcacard/cac.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-10-31 10:14:06 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-10-31 10:14:06 -0500
commitacba391493badb972db654fa1299052fce0379a3 (patch)
treebfd6f7a557cbe65ed77e83ceb2c404fa0f4fd870 /libcacard/cac.c
parenteca968d0d4250fe95abbc7ea99f887142f44b4e0 (diff)
parentd9676f82e54cc7503ad3eb28f996edfeff58a870 (diff)
downloadqemu-acba391493badb972db654fa1299052fce0379a3.tar.gz
qemu-acba391493badb972db654fa1299052fce0379a3.tar.bz2
qemu-acba391493badb972db654fa1299052fce0379a3.zip
Merge remote-tracking branch 'alon/pull-libcacard-assert' into staging
Diffstat (limited to 'libcacard/cac.c')
-rw-r--r--libcacard/cac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcacard/cac.c b/libcacard/cac.c
index f4b0b1b057..927a4ca296 100644
--- a/libcacard/cac.c
+++ b/libcacard/cac.c
@@ -266,7 +266,8 @@ static void
cac_delete_pki_applet_private(VCardAppletPrivate *applet_private)
{
CACPKIAppletData *pki_applet_data = NULL;
- if (pki_applet_data == NULL) {
+
+ if (applet_private == NULL) {
return;
}
pki_applet_data = &(applet_private->u.pki_data);