FIX ZNJK-800 PPPoE 用户删除管理

RCA 用户删除时未删除缓存用户
SOL PPPoE用户删除时,删除缓存中用户
This commit is contained in:
huangxin 2022-06-28 16:53:22 +08:00
parent 612f0a1906
commit 990f60b160
2 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,8 @@ _Noreturn void sessionCalcCb(void *UNUSED(pArg)) {
pppapi_close(pUser->session.ppp, 0);
pUser->session.retry.timeout = time(NULL);
pppapi_free(pUser->session.ppp);
user_info_delete(pUser->userid);
}
break;
#if 0

View File

@ -137,8 +137,10 @@ void user_info_delete(unsigned int userid) {
uv_rwlock_rdunlock(&g_userLock);
if (pInfo) {
uv_rwlock_wrlock(&g_userLock);
HASH_DELETE(hh_id, g_pUserByIdList, pInfo);
HASH_DELETE(hh_vxlan, g_pUserByTagsList, pInfo);
uv_rwlock_wrunlock(&g_userLock);
}
}