Fix error in MTP3MG parsing code

The MTP3MG payload is not the MTP3 payload, but only what is remaining
after the MTP3MG header has been parsed.
This commit is contained in:
Harald Welte 2013-04-26 21:20:19 +05:30
parent eef6ce4397
commit ef770471dc
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ decode_payload(?MTP3_SERV_MTN, Payload) ->
#mtp3mg_msg{h0 = H0, h1 = H1, payload = TP};
decode_payload(?MTP3_SERV_MGMT, Payload) ->
<<H1:4, H0:4, Remain/binary>> = Payload,
#mtp3mg_msg{h0 = H0, h1 = H1, payload = Payload};
#mtp3mg_msg{h0 = H0, h1 = H1, payload = Remain};
decode_payload(_, Payload) ->
Payload.