Skip to content

Commit

Permalink
tls_mgm: initialize method_max when default is used
Browse files Browse the repository at this point in the history
This commit does not necessarily fix a bug right now, as the default TLS
method used is SSLv23, therefore the method_max is not even used.
However, if anytime the default will be changed, the max method would
not be set, thus will result in an error.
  • Loading branch information
razvancrainea committed Feb 13, 2020
1 parent a80e30c commit ca0d748
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/tls_mgm/tls_mgm.c
Expand Up @@ -1205,6 +1205,7 @@ static int init_tls_dom(struct tls_domain *d)
LM_DBG("no method for tls domain '%.*s', using default\n",
d->name.len, ZSW(d->name.s));
d->method = tls_default_method;
d->method_max = tls_default_method;
}

if (!d->cert.s) {
Expand Down

0 comments on commit ca0d748

Please sign in to comment.