httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_engine_init.c
Date Thu, 28 Feb 2002 03:21:51 GMT
dougm       02/02/27 19:21:51

  Modified:    modules/ssl ssl_engine_init.c
  Log:
  contrary to what comments say, DH* returned from ssl_dh_GetTmpParam()
  is _not_ static and needs to be freed via DH_free().
  
  Revision  Changes    Path
  1.33      +2 -2      httpd-2.0/modules/ssl/ssl_engine_init.c
  
  Index: ssl_engine_init.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_init.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ssl_engine_init.c	28 Feb 2002 03:12:11 -0000	1.32
  +++ ssl_engine_init.c	28 Feb 2002 03:21:51 -0000	1.33
  @@ -318,7 +318,7 @@
           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 @@
           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 */
  
  
  

Mime
View raw message