Fix wc_PeekErrorNodeLineData not unlocking error queue on error.

This commit is contained in:
Kareem 2023-04-28 16:35:49 -07:00
parent 52a20fc2b5
commit f6cdcfcf9f

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