Changeset 11e6205 in mod_gnutls


Ignore:
Timestamp:
Jun 10, 2016, 7:30:12 PM (7 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
asyncio, debian/master, debian/stretch-backports, main, master, proxy-ticket, upstream
Children:
5559aa6
Parents:
b2e6406
Message:

dbm_cache_fetch(): Clear data size on allocation failure

Memory allocation failures will probably cause all kinds of issues, so
at least avoid an unclean cache fetch, possibly leading to segfault.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    rb2e6406 r11e6205  
    474474    data.data = gnutls_malloc(data.size);
    475475    if (data.data == NULL)
     476    {
     477        data.size = 0;
    476478        goto cleanup;
     479    }
    477480
    478481    ap_log_cerror(APLOG_MARK, APLOG_DEBUG, rv, ctxt->c,
Note: See TracChangeset for help on using the changeset viewer.