]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
engine pointer not set to NULL on free.
authorMark Andrews <marka@isc.org>
Tue, 18 Feb 2003 06:25:11 +0000 (06:25 +0000)
committerMark Andrews <marka@isc.org>
Tue, 18 Feb 2003 06:25:11 +0000 (06:25 +0000)
lib/dns/sec/dst/openssl_link.c

index f284ca287e0d0543ac9a18ad0eeec3fb821d8038..ce410a4ee4524d7d664885d60e0e2d4ebae3db7a 100644 (file)
@@ -19,7 +19,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: openssl_link.c,v 1.53 2002/12/13 02:51:40 marka Exp $
+ * $Id: openssl_link.c,v 1.54 2003/02/18 06:25:11 marka Exp $
  */
 #ifdef OPENSSL
 
@@ -182,8 +182,10 @@ void
 dst__openssl_destroy() {
        ERR_clear_error();
 #ifdef USE_ENGINE
-       if (e != NULL)
+       if (e != NULL) {
                ENGINE_free(e);
+               e = NULL;
+       }
 #endif
        if (locks != NULL) {
                DESTROYMUTEXBLOCK(locks, nlocks);