Permalink
Browse files

Do not need to reverse the list

  • Loading branch information...
1 parent f2244e5 commit 492a845efba03e9b2efb6af8370227d60dc1301f @ates committed Sep 6, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/pkt.erl
View
@@ -360,8 +360,7 @@ sctp(<<SPort:16, DPort:16, VTag:32, Sum:32, Payload/binary>>) ->
sctp_decode_chunks(Chunks) ->
sctp_decode_chunks(Chunks, []).
-sctp_decode_chunks(<<>>, Acc) ->
- lists:reverse(Acc);
+sctp_decode_chunks(<<>>, Acc) -> Acc;
sctp_decode_chunks(<<Type:8, Flags:8, Length:16, Rest/binary>>, Acc) ->
L = case Length rem 4 of
0 -> Length - 4;

0 comments on commit 492a845

Please sign in to comment.