From 20913a42018f3ad3a9c4ae1183b245c2dd47b8da Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 7 Nov 2022 15:45:50 -0800 Subject: [PATCH] Fix for sniffer with async to not terminate processing until all pending items have been processed. --- sslSniffer/sslSnifferTest/snifftest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sslSniffer/sslSnifferTest/snifftest.c b/sslSniffer/sslSnifferTest/snifftest.c index ebefc4199..92b7fc6ee 100644 --- a/sslSniffer/sslSnifferTest/snifftest.c +++ b/sslSniffer/sslSnifferTest/snifftest.c @@ -904,6 +904,11 @@ int main(int argc, char** argv) /* check if we are done reading file */ if (packet == NULL && data == NULL && saveFile) { + #ifdef WOLFSSL_ASYNC_CRYPT + /* if items pending still then keep processing */ + if (queueSz > 0) + continue; + #endif break; }