mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
Take ownership of pointer before freeing
This commit is contained in:
@@ -844,10 +844,12 @@ isc_tls_create(isc_tlsctx_t *ctx) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
isc_tls_free(isc_tls_t **tlsp) {
|
isc_tls_free(isc_tls_t **tlsp) {
|
||||||
|
isc_tls_t *tls = NULL;
|
||||||
REQUIRE(tlsp != NULL && *tlsp != NULL);
|
REQUIRE(tlsp != NULL && *tlsp != NULL);
|
||||||
|
|
||||||
SSL_free(*tlsp);
|
tls = *tlsp;
|
||||||
*tlsp = NULL;
|
*tlsp = NULL;
|
||||||
|
SSL_free(tls);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
|
Reference in New Issue
Block a user