aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-10-03 11:41:29 +0200
committerAnders Svensson <[email protected]>2012-10-04 18:27:55 +0200
commitead9e5325c52a7271796c9e3a053d50cd86a189c (patch)
tree71aa80b871de38be05b0d41b50a1f23c99aff91f
parent952db27ba0a5b87a2a47f3a7034a9bf92e3651e5 (diff)
downloadotp-ead9e5325c52a7271796c9e3a053d50cd86a189c.tar.gz
otp-ead9e5325c52a7271796c9e3a053d50cd86a189c.tar.bz2
otp-ead9e5325c52a7271796c9e3a053d50cd86a189c.zip
Add missing clause for peer failover
diameter_codec:sequence_numbers/1 is called on an already extracted pair of sequence numbers in the case of failover.
-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 421e280422..a94d37f7a8 100644
--- a/lib/diameter/src/base/diameter_codec.erl
+++ b/lib/diameter/src/base/diameter_codec.erl
@@ -333,6 +333,9 @@ decode_header(_) ->
%% wraparound counter. The 8-bit counter is incremented each time the
%% system is restarted.
+sequence_numbers({_,_} = T) ->
+ T;
+
sequence_numbers(#diameter_packet{bin = Bin})
when is_binary(Bin) ->
sequence_numbers(Bin);