Merge pull request #6357 from kareem-wolfssl/gh6348

Fix wc_PeekErrorNodeLineData not unlocking error queue on error.
This commit is contained in:
JacobBarthelmeh
2023-05-01 13:59:35 -06:00
committed by GitHub

View File

@ -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;
}