aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_codec.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-01-19 21:05:41 +0100
committerAnders Svensson <[email protected]>2015-01-19 21:05:41 +0100
commitbf351d224810e95330c8d317b6d54cc010c5f8f0 (patch)
treee0d9e63a45aa6078d0cc4034b58a7fc045af498d /lib/diameter/src/base/diameter_codec.erl
parentaf87b1c3d4897840d8247589a88d3611106ecedc (diff)
downloadotp-bf351d224810e95330c8d317b6d54cc010c5f8f0.tar.gz
otp-bf351d224810e95330c8d317b6d54cc010c5f8f0.tar.bz2
otp-bf351d224810e95330c8d317b6d54cc010c5f8f0.zip
Fix retransmission of messages sent as header/avps list
Extracting the End-to-End and Hop-by-Hop identifiers resulted in a function clause error, causing the send to fail.
Diffstat (limited to 'lib/diameter/src/base/diameter_codec.erl')
-rw-r--r--lib/diameter/src/base/diameter_codec.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl
index a2b04bfd63..f9bc44cf61 100644
--- a/lib/diameter/src/base/diameter_codec.erl
+++ b/lib/diameter/src/base/diameter_codec.erl
@@ -390,6 +390,9 @@ sequence_numbers(#diameter_packet{bin = Bin})
sequence_numbers(#diameter_packet{header = #diameter_header{} = H}) ->
sequence_numbers(H);
+sequence_numbers(#diameter_packet{msg = [#diameter_header{} = H | _]}) ->
+ sequence_numbers(H);
+
sequence_numbers(#diameter_header{hop_by_hop_id = H,
end_to_end_id = E}) ->
{H,E};