Changeset eee1432 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Jun 15, 2016, 6:12:50 PM (3 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, master, upstream
Children:
44e8944
Parents:
45b7b83
Message:

Bind temporary pool in mgs_load_files() to ptemp scope

Pool 'spool' is destroyed at the end of the function, so the temporary
scope is definitely appropriate. This ensures cleanup in case a bug
prevents explicit pool destruction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r45b7b83 reee1432  
    313313int mgs_hook_post_config(apr_pool_t *pconf,
    314314                         apr_pool_t *plog __attribute__((unused)),
    315                          apr_pool_t *ptemp __attribute__((unused)),
     315                         apr_pool_t *ptemp,
    316316                         server_rec *base_server)
    317317{
     
    393393        sc->cache = sc_base->cache;
    394394
    395         rv = mgs_load_files(pconf, s);
     395        rv = mgs_load_files(pconf, ptemp, s);
    396396        if (rv != 0) {
    397397            ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, s,
Note: See TracChangeset for help on using the changeset viewer.