Changeset 38435cc in mod_gnutls for src


Ignore:
Timestamp:
Apr 24, 2005, 7:55:23 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
836417f
Parents:
2ad3683
Message:

apr_table_setn doesn't copy the data. oops.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r2ad3683 r38435cc  
    558558    gnutls_session_get_id(ctxt->session, sbuf, &len);
    559559    tmp = mgs_session_id2sz(sbuf, len, buf, sizeof(buf));
    560     apr_table_setn(env, "SSL_SESSION_ID", tmp);
     560    apr_table_setn(env, "SSL_SESSION_ID", apr_pstrdup(r->pool, tmp));
    561561
    562562    /* TODO: There are many other env vars that we need to add */
     
    564564        len = sizeof(buf);
    565565        gnutls_x509_crt_get_dn(ctxt->sc->cert_x509, buf, &len);
    566         apr_table_setn(env, "SSL_SERVER_S_DN", buf);
     566        apr_table_setn(env, "SSL_SERVER_S_DN", apr_pstrmemdup(r->pool, buf, len));
    567567           
    568568        len = sizeof(buf);
    569569        gnutls_x509_crt_get_issuer_dn(ctxt->sc->cert_x509, buf, &len);
    570         apr_table_setn(env, "SSL_SERVER_I_DN", buf);
     570        apr_table_setn(env, "SSL_SERVER_I_DN", apr_pstrmemdup(r->pool, buf, len));
    571571    }
    572572   
Note: See TracChangeset for help on using the changeset viewer.