diff --git a/src/ssl.c b/src/ssl.c index aac75253b..f235dbe58 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -38013,7 +38013,7 @@ err: } } - fullName = (char*)XMALLOC(totalLen + 1, NULL, DYNAMIC_TYPE_X509); + fullName = (char*)XMALLOC(totalLen + 1, name->heap, DYNAMIC_TYPE_X509); if (fullName == NULL) return MEMORY_E;