forked from wolfSSL/wolfssl
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:
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user