Skip to content

Commit

Permalink
fix memory cleanup in conftls_cb
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Mauchle committed Aug 11, 2020
1 parent f8b449e commit 440e3b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tlscommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,13 +874,15 @@ int conftls_cb(struct gconffile **cf, void *arg, char *block, char *opt, char *v
goto errexit;
}
free (tlsversion);
tlsversion = NULL;
}
if (dtlsversion) {
if(!conf_tls_version(dtlsversion, &conf->dtlsminversion, &conf->dtlsmaxversion)) {
debug(DBG_ERR, "error in block %s, invalid DtlsVersion %s", val, dtlsversion);
goto errexit;
}
free (dtlsversion);
dtlsversion = NULL;
}
#else
debug(DBG_ERR, "error in block %s, setting tls/dtls version requires openssl 1.1.0 or later", val);
Expand Down

0 comments on commit 440e3b8

Please sign in to comment.