sccp_routing: add missing check_and_dec_hopctr() default case

This commit is contained in:
Harald Welte 2013-07-14 19:44:36 +02:00
parent ffc25358e4
commit d08247b27d
1 changed files with 4 additions and 1 deletions

View File

@ -299,7 +299,10 @@ check_and_dec_hopctr(Msg = #sccp_msg{msg_type = MsgType}) when
Msg#sccp_msg.parameters,
{ ?SCCP_PNC_HOP_COUNTER, HopCtr -1}),
Msg#sccp_msg{parameters = ParNew}
end.
end;
check_and_dec_hopctr(Msg = #sccp_msg{}) ->
Msg.
route_main(SccpMsg) when is_record(SccpMsg, sccp_msg) ->
CalledParty = proplists:get_value(called_party_addr, SccpMsg#sccp_msg.parameters),