aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-09-02 12:34:37 +0200
committerAnders Svensson <[email protected]>2017-09-04 11:42:24 +0200
commitab20efcfec9b9ba72a734c235510aca4d37a10fd (patch)
tree3ac71a710141f752b784f8d7fb526a820862ebf4 /lib/diameter/src
parent70b228f55a34a29f0019ab22affa9f0b70acdabf (diff)
downloadotp-ab20efcfec9b9ba72a734c235510aca4d37a10fd.tar.gz
otp-ab20efcfec9b9ba72a734c235510aca4d37a10fd.tar.bz2
otp-ab20efcfec9b9ba72a734c235510aca4d37a10fd.zip
Fix dictionary compilation error message
Adding a second {Vendor-Id} to the common CER definition results in this error: ** AVP CER at line 85 already referenced at line 84 That is, the error incorrectly refers to the message name (CER) where the AVP name (Vendor-Id) is expected.
Diffstat (limited to 'lib/diameter/src')
-rw-r--r--lib/diameter/src/compiler/diameter_dict_util.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diameter/src/compiler/diameter_dict_util.erl b/lib/diameter/src/compiler/diameter_dict_util.erl
index f9f2b02e94..7b53e51cb6 100644
--- a/lib/diameter/src/compiler/diameter_dict_util.erl
+++ b/lib/diameter/src/compiler/diameter_dict_util.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -923,7 +923,7 @@ xa([D|_] = Ds, [[Qual, D, {_, Line, AvpName}] | Avps], Dict, Key, Name) ->
store_new({Key, {Name, AvpName}},
[Line, Qual, D],
Dict,
- [Name, Line],
+ [AvpName, Line],
avp_already_referenced),
Key,
Name);