Changeset 9071889 in mod_gnutls


Ignore:
Timestamp:
Jan 31, 2020, 3:21:23 PM (3 years ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, main, master, proxy-ticket
Children:
10100a2
Parents:
4b1687d
Message:

Remove pointless set-once process pool userdata

I know some modules use this to detect if they're in the first or
second run of the post_config hook, but it's pointless to have if
there's no change in behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r4b1687d r9071889  
    578578    mgs_srvconf_rec *sc;
    579579    mgs_srvconf_rec *sc_base;
    580     void *data = NULL;
    581     const char *userdata_key = "mgs_init";
    582 
    583     _gnutls_log(debug_log_fp, "%s: %d\n", __func__, __LINE__);
    584 
    585     apr_pool_userdata_get(&data, userdata_key, base_server->process->pool);
    586     if (data == NULL) {
    587         apr_pool_userdata_set((const void *) 1, userdata_key, apr_pool_cleanup_null, base_server->process->pool);
    588     }
    589580
    590581    s = base_server;
Note: See TracChangeset for help on using the changeset viewer.