Skip to content

Commit

Permalink
Mem fail fix: ProcessingBuffer()
Browse files Browse the repository at this point in the history
When ProcessBufferCertTypes() is not called, 'der' is not freed.
  • Loading branch information
SparkiDev committed Apr 29, 2024
1 parent 6e49aa7 commit 41eaa84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ssl_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,9 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff, long sz,
ret = ProcessBufferCertTypes(ctx, ssl, buff, sz, der, format, type,
verify);
}
else {
FreeDer(&der);
}
}

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

0 comments on commit 41eaa84

Please sign in to comment.