]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
contrary to what comments say, DH* returned from ssl_dh_GetTmpParam()
authorDoug MacEachern <dougm@apache.org>
Thu, 28 Feb 2002 03:21:51 +0000 (03:21 +0000)
committerDoug MacEachern <dougm@apache.org>
Thu, 28 Feb 2002 03:21:51 +0000 (03:21 +0000)
is _not_ static and needs to be freed via DH_free().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@93624 13f79535-47bb-0310-9956-ffa450edef68

ssl_engine_init.c

index 9a37e4cf2863d72668484759c9d8b9d34881cabf..8cea93d3ef040264f38c06cac83701397ea923c5 100644 (file)
@@ -318,7 +318,7 @@ void ssl_init_TmpKeysHandle(int action, server_rec *s, apr_pool_t *p)
         length = i2d_DHparams(dh, NULL);
         ucp = ssl_asn1_table_set(mc->tTmpKeys, "DH:512", length);
         (void)i2d_DHparams(dh, &ucp); /* 2nd arg increments */
-        /* no need to free dh, it's static */
+        DH_free(dh);
 
         /* import 1024 bit DH param */
         if ((dh = ssl_dh_GetTmpParam(1024)) == NULL) {
@@ -329,7 +329,7 @@ void ssl_init_TmpKeysHandle(int action, server_rec *s, apr_pool_t *p)
         length = i2d_DHparams(dh, NULL);
         ucp = ssl_asn1_table_set(mc->tTmpKeys, "DH:1024", length);
         (void)i2d_DHparams(dh, &ucp); /* 2nd arg increments */
-        /* no need to free dh, it's static */
+        DH_free(dh);
     }
 
     /* Allocate Keys and Params */