Changeset e151b6f in mod_gnutls


Ignore:
Timestamp:
Jun 1, 2020, 6:18:25 AM (4 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
f97f44c
Parents:
764fef3
Message:

Do not try to cache or load cached proxy sessions without a session cache

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r764fef3 re151b6f  
    11521152    }
    11531153
     1154    /* No cache means we cannot cache tickets. */
     1155    if (!ctxt->sc->cache_enable)
     1156        return GNUTLS_E_SUCCESS;
     1157
    11541158    gnutls_datum_t ticket;
    11551159    int ret = gnutls_session_get_data2(session, &ticket);
  • src/gnutls_proxy.c

    r764fef3 re151b6f  
    408408static void proxy_conn_load_session(mgs_handle_t *ctxt)
    409409{
     410    /* No cache means there cannot be a cached ticket. */
     411    if (!ctxt->sc->cache_enable)
     412        return;
     413
    410414    gnutls_datum_t data = {NULL, 0};
    411415    data.data = gnutls_malloc(MGS_SESSION_FETCH_BUF_SIZE);
Note: See TracChangeset for help on using the changeset viewer.