session: validate connection in session lookup del
Type: fix Change-Id: I4e2617f99064c5a96e4debae8b68716ca129ee73 Signed-off-by: Florin Coras <fcoras@cisco.com> (cherry picked from commit e1e7fb88e47b0ec99d32ea0391d969542960391a)
This commit is contained in:
parent
d4aa3d9f88
commit
da3cc716c0
@ -338,7 +338,7 @@ session_lookup_del_session (session_t * s)
|
||||
transport_connection_t *ts;
|
||||
ts = transport_get_connection (session_get_transport_proto (s),
|
||||
s->connection_index, s->thread_index);
|
||||
if (ts->flags & TRANSPORT_CONNECTION_F_NO_LOOKUP)
|
||||
if (!ts || (ts->flags & TRANSPORT_CONNECTION_F_NO_LOOKUP))
|
||||
return 0;
|
||||
return session_lookup_del_connection (ts);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user