mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-09 00:20:50 +02:00
Merge pull request #10216 from ColtonWilley/add-null-checks-public-api
Add missing NULL checks in public API functions
This commit is contained in:
@@ -378,6 +378,8 @@ int wc_SrpSetParams(Srp* srp, const byte* N, word32 nSz,
|
||||
if (srp->salt) {
|
||||
ForceZero(srp->salt, srp->saltSz);
|
||||
XFREE(srp->salt, srp->heap, DYNAMIC_TYPE_SRP);
|
||||
srp->salt = NULL;
|
||||
srp->saltSz = 0;
|
||||
}
|
||||
|
||||
srp->salt = (byte*)XMALLOC(saltSz, srp->heap, DYNAMIC_TYPE_SRP);
|
||||
|
||||
Reference in New Issue
Block a user