Fix for case where wc_ClearErrorNodes is called, but then wc_PullErrorNode is called and wc_current_node is populated with invalid ->next pointer.

This commit is contained in:
David Garske
2018-09-25 16:13:13 -07:00
parent d7249068db
commit 1bf7cad633

View File

@ -679,6 +679,7 @@ void wc_ClearErrorNodes(void)
wc_errors = NULL;
wc_last_node = NULL;
wc_current_node = NULL;
wc_UnLockMutex(&debug_mutex);
#endif /* DEBUG_WOLFSSL || WOLFSSL_NGINX */
}