Change-Id: I1f8a325eac2a9e2c825996f04026ae86259a7ddd
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
{
sctp_connection_t *sctp_conn =
sctp_connection_get (conn_index, thread_index);
{
sctp_connection_t *sctp_conn =
sctp_connection_get (conn_index, thread_index);
- return &sctp_conn->sub_conn[MAIN_SCTP_SUB_CONN_IDX].connection;
+
+ if (PREDICT_TRUE (sctp_conn != NULL))
+ return &sctp_conn->sub_conn[MAIN_SCTP_SUB_CONN_IDX].connection;
+
+ return NULL;
}
transport_connection_t *
}
transport_connection_t *