Commit b4e921bd authored by Doug MacEachern's avatar Doug MacEachern
Browse files

no need to call SSL_clear() after SSL_new()


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@93824 13f79535-47bb-0310-9956-ffa450edef68
parent c6c229fd
Loading
Loading
Loading
Loading
+1 −1
Changes for mod_ssl.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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)) {
+1 −1
Changes for ssl_engine_ext.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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",