Commit a1afe6ad authored by Simon Morlat's avatar Simon Morlat

robustize function.

parent 6e6c048e
......@@ -691,7 +691,7 @@ bool_t ice_check_list_is_mismatch(const IceCheckList *cl)
IceCheckList * ice_session_check_list(const IceSession *session, unsigned int n)
{
if (n >= ICE_SESSION_MAX_CHECK_LISTS) return NULL;
if (n <0 || n >= ICE_SESSION_MAX_CHECK_LISTS) return NULL;
return session->streams[n];
}
......
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