cosmetic: move log message to else branch
The log message after the nullpointer check for conn tricks Coverity Scan into detecting a nullpointer deref. Include the log message into else branch to state the program flow more clearly Fixes: Coverity CID#178656 Change-Id: If6e962f4033c955ecd3539a719031a83c9b6205a
This commit is contained in:
parent
8ae3c924ef
commit
e4db08a8b5
|
@ -3004,15 +3004,15 @@ int mncc_tx_to_cc(struct gsm_network *net, int msg_type, void *arg)
|
|||
trans->callref = 0;
|
||||
trans_free(trans);
|
||||
return rc;
|
||||
} else {
|
||||
DEBUGP(DCC, "(ti %02x sub %s) "
|
||||
"Received '%s' from MNCC in state %d (%s)\n",
|
||||
trans->transaction_id,
|
||||
vlr_subscr_msisdn_or_name(trans->conn->vsub),
|
||||
get_mncc_name(msg_type), trans->cc.state,
|
||||
gsm48_cc_state_name(trans->cc.state));
|
||||
}
|
||||
|
||||
DEBUGP(DCC, "(ti %02x sub %s) "
|
||||
"Received '%s' from MNCC in state %d (%s)\n",
|
||||
trans->transaction_id,
|
||||
vlr_subscr_msisdn_or_name(trans->conn->vsub),
|
||||
get_mncc_name(msg_type), trans->cc.state,
|
||||
gsm48_cc_state_name(trans->cc.state));
|
||||
|
||||
/* Find function for current state and message */
|
||||
for (i = 0; i < DOWNSLLEN; i++)
|
||||
if ((msg_type == downstatelist[i].type)
|
||||
|
|
Loading…
Reference in New Issue