forked from wolfSSL/wolfssl
Merge pull request #1073 from JacobBarthelmeh/StaticAnalysisTests
Static analysis tests
This commit is contained in:
@ -9669,14 +9669,14 @@ static INLINE int DtlsCheckWindow(WOLFSSL* ssl)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (peerSeq == NULL) {
|
|
||||||
WOLFSSL_MSG("Couldn't find that peer ID to check window.");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (peerSeq == NULL) {
|
||||||
|
WOLFSSL_MSG("Could not find peer sequence");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (ssl->keys.curEpoch == peerSeq->nextEpoch) {
|
if (ssl->keys.curEpoch == peerSeq->nextEpoch) {
|
||||||
next_hi = peerSeq->nextSeq_hi;
|
next_hi = peerSeq->nextSeq_hi;
|
||||||
next_lo = peerSeq->nextSeq_lo;
|
next_lo = peerSeq->nextSeq_lo;
|
||||||
|
@ -5065,7 +5065,7 @@ static void TLSX_KeyShare_FreeAll(KeyShareEntry* list, void* heap)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
wc_ecc_free(current->key);
|
wc_ecc_free((ecc_key*)(current->key));
|
||||||
}
|
}
|
||||||
XFREE(current->key, heap, DYNAMIC_TYPE_PRIVATE_KEY);
|
XFREE(current->key, heap, DYNAMIC_TYPE_PRIVATE_KEY);
|
||||||
XFREE(current->ke, heap, DYNAMIC_TYPE_PUBLIC_KEY);
|
XFREE(current->ke, heap, DYNAMIC_TYPE_PUBLIC_KEY);
|
||||||
|
Reference in New Issue
Block a user