libimcv: Properly deinitialize libimcv
authorTobias Brunner <tobias@strongswan.org>
Thu, 2 May 2013 12:43:28 +0000 (14:43 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 Jul 2013 16:49:28 +0000 (18:49 +0200)
Other users of imcv_pa_tnc_attributes (libpts) check if it is NULL before
removing vendor IDs.

src/libimcv/imcv.c

index b52b81c..b5862da 100644 (file)
@@ -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");
        }