mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
need to NULL out poll/sock pointers to prevent mme crash on vlr detach
This commit is contained in:
committed by
Sukchan Lee
parent
cfa4457502
commit
a82a63bb1f
@@ -2838,10 +2838,14 @@ void mme_vlr_close(mme_vlr_t *vlr)
|
||||
{
|
||||
ogs_assert(vlr);
|
||||
|
||||
if (vlr->poll)
|
||||
if (vlr->poll) {
|
||||
ogs_pollset_remove(vlr->poll);
|
||||
if (vlr->sock)
|
||||
vlr->poll = NULL;
|
||||
}
|
||||
if (vlr->sock) {
|
||||
ogs_sctp_destroy(vlr->sock);
|
||||
vlr->sock = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
mme_vlr_t *mme_vlr_find_by_sock(const ogs_sock_t *sock)
|
||||
|
Reference in New Issue
Block a user