Skip to content

Commit 76b3023

Browse files
authored
Merge pull request #7484 from SparkiDev/mem_fail_fixes_1
Mem fail fix: ProcessingBuffer()
2 parents 52861cb + 41eaa84 commit 76b3023

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/ssl_load.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,6 +2352,9 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
23522352
ret = ProcessBufferCertTypes(ctx, ssl, buff, sz, der, format, type,
23532353
verify);
23542354
}
2355+
else {
2356+
FreeDer(&der);
2357+
}
23552358
}
23562359

23572360
/* Reset suites if this is a private key or user certificate. */

0 commit comments

Comments
 (0)