Skip to content

Commit

Permalink
Return SCTP chunks in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
ates committed Mar 17, 2016
1 parent d0f547f commit 005e963
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pkt_sctp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@
codec(<<SPort:16, DPort:16, VTag:32, Sum:32, Payload/binary>>) ->
{Chunks, Other} = decode_chunks(Payload, []),
SCTP = #sctp{
sport = SPort, dport = DPort, vtag = VTag,
sum = Sum, chunks = Chunks
sport = SPort,
dport = DPort,
vtag = VTag,
sum = Sum,
chunks = lists:reverse(Chunks)
},
{SCTP, Other}.

Expand Down

0 comments on commit 005e963

Please sign in to comment.