Changeset 92ac36e in mod_gnutls


Ignore:
Timestamp:
Jun 27, 2017, 1:02:55 PM (6 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master
Children:
a2b4ab6
Parents:
439005a
Message:

Remove dead code in DH parameters setup

The dh_params variable in mgs_hook_post_config was initialized to NULL
and never changed, so the "if(dh_params)" branch was never taken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    r4f7edd5 r92ac36e  
    328328    int rv;
    329329    server_rec *s;
    330     gnutls_dh_params_t dh_params = NULL;
    331330    mgs_srvconf_rec *sc;
    332331    mgs_srvconf_rec *sc_base;
     
    438437        }
    439438
    440         /* Check if DH params have been set per host */
     439        /* Set host DH params */
    441440        if (sc->dh_params != NULL) {
    442441            gnutls_certificate_set_dh_params(sc->certs, sc->dh_params);
    443442            gnutls_anon_set_server_dh_params(sc->anon_creds, sc->dh_params);
    444         } else if (dh_params) {
    445             gnutls_certificate_set_dh_params(sc->certs, dh_params);
    446             gnutls_anon_set_server_dh_params(sc->anon_creds, dh_params);
    447443        }
    448444
Note: See TracChangeset for help on using the changeset viewer.