Browse Source

Merge pull request #6357 from kareem-wolfssl/gh6348

Fix wc_PeekErrorNodeLineData not unlocking error queue on error.
JacobBarthelmeh 1 year ago
parent
commit
c84abaf5b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wolfcrypt/src/logging.c

+ 1 - 0
wolfcrypt/src/logging.c

@@ -1218,6 +1218,7 @@ unsigned long wc_PeekErrorNodeLineData(const char **file, int *line,
     while (1) {
         int ret = peekErrorNode(idx, file, NULL, line);
         if (ret == BAD_MUTEX_E || ret == BAD_FUNC_ARG || ret == BAD_STATE_E) {
+            ERRQ_UNLOCK();
             WOLFSSL_MSG("Issue peeking at error node in queue");
             return 0;
         }