mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
nat: The con variable is not assigned at this point
Coverity pointed out that this code is logically dead. Quickly judging the code we will forward the RSLD message anyway. Remove the code for now and next time I work on the NAT/USSD bridge I will have a look at the flow of the RLSD messages. Fixes: Coverity CID 1042327
This commit is contained in:
@@ -667,11 +667,6 @@ static int forward_sccp_to_bts(struct bsc_msc_connection *msc_con, struct msgb *
|
||||
goto send_to_all;
|
||||
break;
|
||||
case SCCP_MSG_TYPE_RLSD:
|
||||
if (con && con->con_local == NAT_CON_END_USSD) {
|
||||
LOGP(DNAT, LOGL_NOTICE, "RLSD for a USSD connection. Ignoring.\n");
|
||||
con = NULL;
|
||||
}
|
||||
/* fall through */
|
||||
case SCCP_MSG_TYPE_CREF:
|
||||
case SCCP_MSG_TYPE_DT1:
|
||||
case SCCP_MSG_TYPE_IT:
|
||||
|
||||
Reference in New Issue
Block a user