diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-05-02 14:43:28 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-07-08 18:49:28 +0200 |
commit | 6bce8e1cfba8d8a12adb9c1da3464074659dff46 (patch) | |
tree | e567779eaab3cb76606cd01d7dfa53d1f3ddfd22 | |
parent | 403165102c82b4cdee20409b0ab75125cc580a75 (diff) | |
download | strongswan-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.c | 1 |
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"); } |