Do not fail on NULL passed to OpenSSL_free
Some plugins might call it after deconstruction. Do not crash if there
is no reason for it.
(cherry picked from commit a26673a088)
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
5146. [bug] Removed an unnecessary assert that could be
|
||||||
|
triggered from PKCS#11 modules during
|
||||||
|
deconstruction. [GL #841]
|
||||||
|
|
||||||
5143. [bug] dnssec-keymgr and dnssec-coverage failed to find
|
5143. [bug] dnssec-keymgr and dnssec-coverage failed to find
|
||||||
key files for zone names ending in ".". [GL #560]
|
key files for zone names ending in ".". [GL #560]
|
||||||
|
|
||||||
|
|||||||
@@ -160,9 +160,11 @@ mem_alloc(size_t size FLARG) {
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
mem_free(void *ptr FLARG) {
|
mem_free(void *ptr FLARG) {
|
||||||
INSIST(dst__memory_pool != NULL);
|
if (ptr != NULL) {
|
||||||
if (ptr != NULL)
|
INSIST(dst__memory_pool != NULL);
|
||||||
|
|
||||||
isc__mem_free(dst__memory_pool, ptr FLARG_PASS);
|
isc__mem_free(dst__memory_pool, ptr FLARG_PASS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
|||||||
Reference in New Issue
Block a user