NULL-pointer sgw_ue context is accessed (#18)

This commit is contained in:
Sukchan Lee 2018-02-21 17:29:47 +09:00
parent b8cc130bf5
commit f5582c97b5
1 changed files with 2 additions and 3 deletions

View File

@ -212,11 +212,10 @@ static int _gtpv1_u_recv_cb(sock_id sock, void *data)
d_assert(bearer->sess->sgw_ue, pkbuf_free(pkbuf); return 0,
"SGW_UE is NULL");
d_trace(3, "[SGW] S1U PATH deactivated : STATE[0x%x]\n",
SGW_GET_UE_STATE(sgw_ue));
sgw_ue = bearer->sess->sgw_ue;
d_trace(3, "[SGW] S1U PATH deactivated : STATE[0x%x]\n",
SGW_GET_UE_STATE(sgw_ue));
if ((SGW_GET_UE_STATE(sgw_ue) & SGW_S1U_INACTIVE))
{
d_trace(5, " SGW-S1U Inactive\n");