Commit c508e5e4 authored by Alan Chang's avatar Alan Chang

fix null pointer exception

parent bbf325ab
......@@ -135,12 +135,19 @@ void GtpTask::handleSessionRelease(int ueId, int psi)
return;
}
uint64_t sessionInd = MakeSessionResInd(ueId, psi);
// Remove all session information from rate limiter
m_rateLimiter->updateSessionUplinkLimit(sessionInd, 0);
m_rateLimiter->updateUeDownlinkLimit(ueId, 0);
if (!m_pduSessions[sessionInd]->downTunnel) {
m_logger->err("PDU session resource could not be released, PSI downlink tunnel [%d] not found", psi);
return;
}
// And remove from PDU session table
uint32_t teid = m_pduSessions[sessionInd]->downTunnel.teid;
m_pduSessions.erase(sessionInd);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment