mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
fix static analysis warning, g++ compile warning
This commit is contained in:
@@ -3418,7 +3418,8 @@ int ParseCert(DecodedCert* cert, int type, int verify, void* cm)
|
|||||||
cert->subjectCNStored = 1;
|
cert->subjectCNStored = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cert->keyOID == RSAk && cert->pubKeySize > 0) {
|
if (cert->keyOID == RSAk &&
|
||||||
|
cert->publicKey != NULL && cert->pubKeySize > 0) {
|
||||||
ptr = (char*) XMALLOC(cert->pubKeySize, cert->heap,
|
ptr = (char*) XMALLOC(cert->pubKeySize, cert->heap,
|
||||||
DYNAMIC_TYPE_PUBLIC_KEY);
|
DYNAMIC_TYPE_PUBLIC_KEY);
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
|
@@ -80,8 +80,8 @@ static int IsValidCipherSuite(const char* line, char* suite)
|
|||||||
int valid = 0;
|
int valid = 0;
|
||||||
|
|
||||||
const char* find = "-l ";
|
const char* find = "-l ";
|
||||||
char* begin = strstr(line, find);
|
const char* begin = strstr(line, find);
|
||||||
char* end;
|
const char* end;
|
||||||
|
|
||||||
suite[0] = '\0';
|
suite[0] = '\0';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user