aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_traffic.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-05-15 00:32:40 +0200
committerAnders Svensson <[email protected]>2015-05-18 13:43:29 +0200
commitca72fdaa517d6d541c7176eda5edf9908d745ce8 (patch)
tree16e9219d6be89c0285204136c31e58979c976855 /lib/diameter/src/base/diameter_traffic.erl
parent30041995fd1942f7a8ab0040f8259d7fbf8946f0 (diff)
downloadotp-ca72fdaa517d6d541c7176eda5edf9908d745ce8.tar.gz
otp-ca72fdaa517d6d541c7176eda5edf9908d745ce8.tar.bz2
otp-ca72fdaa517d6d541c7176eda5edf9908d745ce8.zip
Fix broken result code counters
Commit a1df50b3 broke result code counters in the case of answer messages sent as a header/avp lists (unless the avps, untypically, set the name field), and for answers sent/received in the relay application.
Diffstat (limited to 'lib/diameter/src/base/diameter_traffic.erl')
-rw-r--r--lib/diameter/src/base/diameter_traffic.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_traffic.erl b/lib/diameter/src/base/diameter_traffic.erl
index ffd2c0afa2..5d077222c2 100644
--- a/lib/diameter/src/base/diameter_traffic.erl
+++ b/lib/diameter/src/base/diameter_traffic.erl
@@ -1887,7 +1887,7 @@ get_avp(Dict, Name, [#diameter_header{} | Avps]) ->
find_avp(Code, VId, Avps)
of
A ->
- avp_decode(Dict, Name, ungroup(A))
+ (avp_decode(Dict, Name, ungroup(A)))#diameter_avp{name = Name}
catch
error: _ ->
undefined