aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-27 09:01:01 +0200
committerAnders Svensson <[email protected]>2014-05-27 09:01:01 +0200
commit339b6416664c7dc64d72c21653138137e8d1018f (patch)
tree30f5c26c18b9e03e6ec7bf0e024eea67f35dc164 /lib/diameter/src/base
parent316fe2a30714b9eb87e0d11f6bdbbd1eb9fefdc1 (diff)
parentc2c00fdd4de1b8883e47ec1b5b048659ef033302 (diff)
downloadotp-339b6416664c7dc64d72c21653138137e8d1018f.tar.gz
otp-339b6416664c7dc64d72c21653138137e8d1018f.tar.bz2
otp-339b6416664c7dc64d72c21653138137e8d1018f.zip
Merge branch 'anders/diameter/Failed-AVP/OTP-11936' into maint
* anders/diameter/Failed-AVP/OTP-11936: Do best-effort decode of Failed-AVP Add a testcase that expects a decoded value in Failed-AVP
Diffstat (limited to 'lib/diameter/src/base')
-rw-r--r--lib/diameter/src/base/diameter_codec.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl
index 0ca4a84d21..06a4f5de64 100644
--- a/lib/diameter/src/base/diameter_codec.erl
+++ b/lib/diameter/src/base/diameter_codec.erl
@@ -593,7 +593,8 @@ pack_avp(#diameter_avp{code = undefined, data = B})
Len = size(<<H:5/binary, _:24, T/binary>> = <<B/binary, 0:Pad>>),
<<H/binary, Len:24, T/binary>>;
-%% ... from a dictionary compiled against old code (diameter_gen) ...
+%% ... from a dictionary compiled against old code in diameter_gen ...
+%% ... when ignoring errors in Failed-AVP ...
pack_avp(#diameter_avp{data = <<0:1, B/binary>>} = A) ->
pack_avp(A#diameter_avp{data = B});