diff options
author | Anders Svensson <[email protected]> | 2017-04-23 09:39:32 +0200 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2017-06-12 16:13:52 +0200 |
commit | 6838d0a8988eb7264641eb68bb7d7a79ff7bfbbb (patch) | |
tree | bc519b89cc8c349ee8d7b921ce819e0ee4dad0d1 | |
parent | 7aec6ad7e56a377bf84fe833dfde43f52263224a (diff) | |
download | otp-6838d0a8988eb7264641eb68bb7d7a79ff7bfbbb.tar.gz otp-6838d0a8988eb7264641eb68bb7d7a79ff7bfbbb.tar.bz2 otp-6838d0a8988eb7264641eb68bb7d7a79ff7bfbbb.zip |
Fix maximum AVP arity check
-rw-r--r-- | lib/diameter/include/diameter_gen.hrl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diameter/include/diameter_gen.hrl b/lib/diameter/include/diameter_gen.hrl index f788264647..67b9f890a7 100644 --- a/lib/diameter/include/diameter_gen.hrl +++ b/lib/diameter/include/diameter_gen.hrl @@ -666,7 +666,7 @@ pack(_, 1, _, Avp, {Rec, Failed}) -> {Rec, [{5009, Avp} | Failed]}; pack(L, {_, Max}, F, Avp, {Rec, Failed}) -> - case '*' /= Max andalso has_prefix(Max, L) of + case '*' /= Max andalso has_prefix(Max+1, L) of true -> {Rec, [{5009, Avp} | Failed]}; false when F == 'AVP' -> |