Merge pull request #10711 from kareem-wolfssl/zd21987

Add a NULL check to refineSuites.
This commit is contained in:
Daniel Pouzzner
2026-07-03 00:47:08 -05:00
committed by GitHub
+11
View File
@@ -38173,6 +38173,17 @@ static int AddPSKtoPreMasterSecret(WOLFSSL* ssl)
word16 i;
word16 j;
if (outSuites == NULL) {
WOLFSSL_MSG("refineSuites called with NULL outSuites");
return;
}
if (sslSuites == NULL || peerSuites == NULL) {
WOLFSSL_MSG("refineSuites called with NULL suite list");
outSuites->suiteSz = 0;
return;
}
XMEMSET(suites, 0, sizeof(suites));
if (!useClientOrder) {