aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-05-02 14:43:28 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-08 18:49:28 +0200
commit6bce8e1cfba8d8a12adb9c1da3464074659dff46 (patch)
treee567779eaab3cb76606cd01d7dfa53d1f3ddfd22
parent403165102c82b4cdee20409b0ab75125cc580a75 (diff)
downloadstrongswan-6bce8e1cfba8d8a12adb9c1da3464074659dff46.tar.bz2
strongswan-6bce8e1cfba8d8a12adb9c1da3464074659dff46.tar.xz
libimcv: Properly deinitialize libimcv
Other users of imcv_pa_tnc_attributes (libpts) check if it is NULL before removing vendor IDs.
-rw-r--r--src/libimcv/imcv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libimcv/imcv.c b/src/libimcv/imcv.c
index b52b81c42..b5862daee 100644
--- a/src/libimcv/imcv.c
+++ b/src/libimcv/imcv.c
@@ -174,6 +174,7 @@ void libimcv_deinit(void)
imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_IETF);
imcv_pa_tnc_attributes->remove_vendor(imcv_pa_tnc_attributes, PEN_ITA);
DESTROY_IF(imcv_pa_tnc_attributes);
+ imcv_pa_tnc_attributes = NULL;
DESTROY_IF(imcv_db);
DBG1(DBG_LIB, "libimcv terminated");
}