From 33f3be4d52984b6914536509d4c915091b056960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 22 Dec 2009 17:45:15 +0100 Subject: [PATCH] Don't free the hx509ctx otherwise we crash if we fail to init certs (e.g. due to missing smartcard). Signed-off-by: Love Hornquist Astrand --- autogen.sh | 0 lib/krb5/pkinit.c | 1 - 2 files changed, 1 deletion(-) mode change 100644 => 100755 autogen.sh diff --git a/autogen.sh b/autogen.sh old mode 100644 new mode 100755 diff --git a/lib/krb5/pkinit.c b/lib/krb5/pkinit.c index 1d3845435..9239ee6ad 100644 --- a/lib/krb5/pkinit.c +++ b/lib/krb5/pkinit.c @@ -1959,7 +1959,6 @@ _krb5_pk_load_id(krb5_context context, hx509_certs_free(&id->anchors); hx509_certs_free(&id->certpool); hx509_revoke_free(&id->revokectx); - hx509_context_free(&context->hx509ctx); free(id); } else *ret_id = id;