aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/include/diameter_gen.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/diameter/include/diameter_gen.hrl')
-rw-r--r--lib/diameter/include/diameter_gen.hrl2
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' ->