aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-09-03 17:20:25 +0200
committerAnders Svensson <[email protected]>2013-09-04 17:34:17 +0200
commit9179631057b28c125ef3f0b84dede5adb26d3b96 (patch)
tree6a50ffddc9dde4a036b6ed2adc9dcf0bf148d197 /lib
parent8cece79b77952c991e62ae595bcf71cde016a052 (diff)
downloadotp-9179631057b28c125ef3f0b84dede5adb26d3b96.tar.gz
otp-9179631057b28c125ef3f0b84dede5adb26d3b96.tar.bz2
otp-9179631057b28c125ef3f0b84dede5adb26d3b96.zip
Fix Failed-AVP construction for CEA/DWA/DPA
Send of Failed-AVP resulted in encode failure.
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/src/base/diameter_peer_fsm.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_peer_fsm.erl b/lib/diameter/src/base/diameter_peer_fsm.erl
index 4e55864168..a6e902d752 100644
--- a/lib/diameter/src/base/diameter_peer_fsm.erl
+++ b/lib/diameter/src/base/diameter_peer_fsm.erl
@@ -751,7 +751,7 @@ answer(Type, RC, Es, S) ->
set(answer(Type, RC, S), failed_avp(RC, Es)).
failed_avp(RC, [{RC, Avp} | _]) ->
- [{'Failed-AVP', [{'AVP', [Avp]}]}];
+ [{'Failed-AVP', [[{'AVP', [Avp]}]]}];
failed_avp(RC, [_ | Es]) ->
failed_avp(RC, Es);
failed_avp(_, [] = No) ->