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

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