We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 678660e commit b8f9b06Copy full SHA for b8f9b06
wolfcrypt/src/logging.c
@@ -1939,7 +1939,7 @@ int wc_backtrace_render(void) {
1939
int cur_init_count = wolfSSL_Atomic_Int_FetchSub(&init_count, 1);
1940
if (cur_init_count != 0) {
1941
(void)wolfSSL_Atomic_Int_FetchAdd(&init_count, 1);
1942
- return DEADLOCK_AVERTED_E;
+ return WC_NO_ERR_TRACE(DEADLOCK_AVERTED_E);
1943
}
1944
ret = wc_InitMutex(&backtrace_mutex);
1945
if (ret != 0)
@@ -1960,7 +1960,7 @@ int wc_backtrace_render(void) {
1960
if (backtrace_state == NULL) {
1961
if (backtrace_init(&backtrace_state) < 0) {
1962
wc_UnLockMutex(&backtrace_mutex);
1963
- return BAD_STATE_E;
+ return WC_NO_ERR_TRACE(BAD_STATE_E);
1964
1965
1966
0 commit comments