aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-05-17 16:24:44 +0200
committerAnders Svensson <[email protected]>2015-05-18 14:12:55 +0200
commit275cb3f7959d91b4b814a4123580cc9035fac712 (patch)
treeeae512af4faab874e2b71c4c2d3f2bbf2d29c939 /lib/diameter/src/base
parent083c866300bde2ef4619b98338052c3640b0faa5 (diff)
downloadotp-275cb3f7959d91b4b814a4123580cc9035fac712.tar.gz
otp-275cb3f7959d91b4b814a4123580cc9035fac712.tar.bz2
otp-275cb3f7959d91b4b814a4123580cc9035fac712.zip
Fix counting of no_result_code/invalid_error_bit
The message was regarded as unknown if the answer message in question set the E-bit and the application dictionary was not the common dictionary.
Diffstat (limited to 'lib/diameter/src/base')
-rw-r--r--lib/diameter/src/base/diameter_traffic.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_traffic.erl b/lib/diameter/src/base/diameter_traffic.erl
index bc5965c286..eb4bbae931 100644
--- a/lib/diameter/src/base/diameter_traffic.erl
+++ b/lib/diameter/src/base/diameter_traffic.erl
@@ -186,13 +186,13 @@ incr_error(Dir, Id, TPid) ->
| {'Experimental-Result', integer(), integer()},
Reason :: atom().
-incr_rc(Dir, Pkt, TPid, {MsgDict, _, _} = DictT) ->
+incr_rc(Dir, Pkt, TPid, {_, AppDict, _} = DictT) ->
try
incr_result(Dir, Pkt, TPid, DictT)
catch
exit: {E,_} when E == no_result_code;
E == invalid_error_bit ->
- incr(TPid, {msg_id(Pkt#diameter_packet.header, MsgDict), Dir, E}),
+ incr(TPid, {msg_id(Pkt#diameter_packet.header, AppDict), Dir, E}),
E
end;