sanity check on peer sequence for static analysis report

This commit is contained in:
Jacob Barthelmeh
2017-07-31 16:37:34 -06:00
parent fb53fac1c1
commit 08da8df455

View File

@@ -9669,13 +9669,13 @@ static INLINE int DtlsCheckWindow(WOLFSSL* ssl)
break; break;
} }
} }
#endif
}
if (peerSeq == NULL) { if (peerSeq == NULL) {
WOLFSSL_MSG("Couldn't find that peer ID to check window."); WOLFSSL_MSG("Could not find peer sequence");
return 0; return 0;
} }
#endif
}
if (ssl->keys.curEpoch == peerSeq->nextEpoch) { if (ssl->keys.curEpoch == peerSeq->nextEpoch) {
next_hi = peerSeq->nextSeq_hi; next_hi = peerSeq->nextSeq_hi;