]> granicus.if.org Git - apache/commitdiff
no need to call SSL_clear() after SSL_new()
authorDoug MacEachern <dougm@apache.org>
Sun, 10 Mar 2002 00:29:49 +0000 (00:29 +0000)
committerDoug MacEachern <dougm@apache.org>
Sun, 10 Mar 2002 00:29:49 +0000 (00:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93824 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/mod_ssl.c
modules/ssl/ssl_engine_ext.c

index 13209b30f367d067093e1040b732a7947a4541d7..57ac2a763b36688dac252a62710895a095a745a5 100644 (file)
@@ -264,7 +264,7 @@ static int ssl_hook_pre_connection(conn_rec *c, void *csd)
         c->aborted = 1;
         return DECLINED; /* XXX */
     }
-    SSL_clear(ssl);
+
     cpVHostMD5 = ap_md5_binary(c->pool, sc->szVHostID, sc->nVHostID_length);
     if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5,
                                     MD5_DIGESTSIZE*2)) {
index 76aa63ff58172d1260e7cb2fad52e7e8d6a0dd73..8a1bfbab3d28005ebe5b09cb4c0e2e411b250051 100644 (file)
@@ -322,7 +322,7 @@ static char *ssl_ext_mp_new_connection(request_rec *r, BUFF *fb, char *peer)
         ap_ctx_set(fb->ctx, "ssl", NULL);
         return errmsg;
     }
-    SSL_clear(ssl);
+
     cpVHostMD5 = ap_md5(r->pool, (unsigned char *)cpVHostID);
     if (!SSL_set_session_id_context(ssl, (unsigned char *)cpVHostMD5, strlen(cpVHostMD5))) {
         errmsg = ap_psprintf(r->pool, "Unable to set session id context to `%s': peer %s: %s",