From: Tobias Brunner Date: Thu, 2 May 2013 12:43:28 +0000 (+0200) Subject: libimcv: Properly deinitialize libimcv X-Git-Tag: 5.1.0dr2~2^2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bce8e1cfba8d8a12adb9c1da3464074659dff46;p=thirdparty%2Fstrongswan.git libimcv: Properly deinitialize libimcv Other users of imcv_pa_tnc_attributes (libpts) check if it is NULL before removing vendor IDs. --- diff --git a/src/libimcv/imcv.c b/src/libimcv/imcv.c index b52b81c42b..b5862daeeb 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"); }