Fix to avoid using WC_HW_WAIT_E
for sniffer. ZD14398
This commit is contained in:
parent
b87b255d52
commit
5ade360d9e
@ -5718,7 +5718,7 @@ static int CheckSequence(IpInfo* ipInfo, TcpInfo* tcpInfo,
|
||||
if (session->sslServer->error == WC_PENDING_E &&
|
||||
session->pendSeq != tcpInfo->sequence) {
|
||||
/* this stream is processing, queue packet */
|
||||
return WC_HW_WAIT_E;
|
||||
return WC_PENDING_E;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -867,9 +867,9 @@ int main(int argc, char** argv)
|
||||
ret = ssl_DecodePacketAsync(chain, chainSz, isChain, &data, err,
|
||||
&sslInfo, NULL);
|
||||
|
||||
/* WC_PENDING_E: Hardware is processing */
|
||||
/* WC_HW_WAIT_E: Hardware is already processing stream */
|
||||
if (ret == WC_PENDING_E || ret == WC_HW_WAIT_E) {
|
||||
/* WC_PENDING_E: Hardware is processing or stream is blocked
|
||||
* (waiting on WC_PENDING_E) */
|
||||
if (ret == WC_PENDING_E) {
|
||||
/* add to queue, for later processing */
|
||||
#ifdef DEBUG_SNIFFER
|
||||
printf("Steam is pending, queue packet %d\n", packetNumber);
|
||||
|
Loading…
x
Reference in New Issue
Block a user