Merge pull request #10216 from ColtonWilley/add-null-checks-public-api

Add missing NULL checks in public API functions
This commit is contained in:
David Garske
2026-04-24 14:42:24 -07:00
committed by GitHub
6 changed files with 55 additions and 14 deletions
+2
View File
@@ -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);