mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
sanity check on peer sequence for static analysis report
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;
|
||||||
|
Reference in New Issue
Block a user