Browse code

app_lua: Fixed error 'too many parameters'

- Calling function KSR.secsipid.secsipid_add_identity() has six parameters, is giving error 'too many parameters'

Miteshkumar Thakkar authored on 23/03/2021 15:05:20 • Daniel-Constantin Mierla committed on 23/03/2021 16:27:32
Showing 1 changed files
... ...
@@ -969,7 +969,7 @@ int sr_kemi_lua_exec_func_ex(lua_State* L, sr_kemi_t *ket, int pdelta)
969 969
 		return app_lua_return_false(L);
970 970
 	}
971 971
 
972
-	if(argc>=SR_KEMI_PARAMS_MAX+pdelta) {
972
+	if(argc>SR_KEMI_PARAMS_MAX+pdelta) {
973 973
 		LM_ERR("too many parameters for: %.*s.%.*s\n",
974 974
 				mname->len, mname->s, fname->len, fname->s);
975 975
 		return app_lua_return_false(L);