From 7fc7e5844cd3f5018c0853268f1bc173572e5fb7 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 27 Sep 2011 17:18:50 +0300 Subject: [PATCH] libcacard/cac: fix typo in cac_delete_pki_applet_private Signed-off-by: Alon Levy --- libcacard/cac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);