]> granicus.if.org Git - ejabberd/commitdiff
Fix check_opt_range when no boundary is configured
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 28 Dec 2017 12:51:26 +0000 (13:51 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 28 Dec 2017 12:51:26 +0000 (13:51 +0100)
src/mod_pubsub.erl

index 663c8eec835fa5942416defbae5cec49106bdf83..e231a4d5986ff3a1fd803e1f6bff4e01274d93aa 100644 (file)
@@ -3315,6 +3315,8 @@ decode_get_pending(undefined, Lang) ->
     {error, xmpp:err_bad_request(<<"No data form found">>, Lang)}.
 
 -spec check_opt_range(atom(), [proplists:property()], non_neg_integer()) -> boolean().
+check_opt_range(_Opt, _Opts, undefined) ->
+    true;
 check_opt_range(Opt, Opts, Max) ->
     Val = proplists:get_value(Opt, Opts, Max),
     Val =< Max.