mirror of
https://github.com/openharmony/communication_t2stack.git
synced 2026-07-21 00:35:25 -04:00
fix task->handle use-after-free
Signed-off-by: yexiaokang <yexiaokang3@huawei.com>
This commit is contained in:
@@ -452,6 +452,7 @@ void NSTACKX_ThreadDeinit(void)
|
||||
}
|
||||
g_nstackThreadInitState = NSTACKX_INIT_STATE_START;
|
||||
(void)PthreadMutexUnlock(&g_threadInitLock);
|
||||
DFINDER_LOGI(TAG, "nstack deinit thread success");
|
||||
}
|
||||
|
||||
#if !defined(DFINDER_USE_MINI_NSTACKX) && !defined(DFINDER_ENABLE_COAP_LOG)
|
||||
|
||||
@@ -397,7 +397,7 @@ static void DestroyAllLocalIfaceOfList(List *list, uint8_t af)
|
||||
if (iface->af != af) {
|
||||
continue;
|
||||
}
|
||||
DestroyLocalIface(iface, true);
|
||||
DestroyLocalIface(iface, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user