mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 11:00:50 +02:00
Merge pull request #10711 from kareem-wolfssl/zd21987
Add a NULL check to refineSuites.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user