Browse Source

Fix for sniffer with async to not terminate processing until all pending items have been processed.

David Garske 1 year ago
parent
commit
20913a4201
1 changed files with 5 additions and 0 deletions
  1. 5 0
      sslSniffer/sslSnifferTest/snifftest.c

+ 5 - 0
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;
         }