Module: kamailio
Branch: 5.8
Commit: 9fa9d8ac0559b9fcd0ed999a8228d7599d9dfe82
URL: 
https://github.com/kamailio/kamailio/commit/9fa9d8ac0559b9fcd0ed999a8228d7599d9dfe82

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2025-12-02T10:11:43+01:00

app_lua_sr: fix build after 8345cd712e2a7b62af682834c0540b4555b84095

> app_lua_sr_exp.c:1108:4: note: expected 'hdr_field_t **' {aka 'struct 
> hdr_field **'} but argument is of type 'str *' {aka 'struct _str *'}
> app_lua_sr_exp.c:1107:8: error: too few arguments to function 
> '_lua_authb.pv_authenticate'
>  1107 |  ret = _lua_authb.pv_authenticate(env_L->msg, &realm, &passwd, flags, 
> hftype,
>       |        ^~~~~~~~~~
> make[3]: *** [../../Makefile.rules:100: app_lua_sr_exp.o] Error 1

---

Modified: src/modules/app_lua_sr/app_lua_sr_exp.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9fa9d8ac0559b9fcd0ed999a8228d7599d9dfe82.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9fa9d8ac0559b9fcd0ed999a8228d7599d9dfe82.patch

---

diff --git a/src/modules/app_lua_sr/app_lua_sr_exp.c 
b/src/modules/app_lua_sr/app_lua_sr_exp.c
index 522f0cfb87a..c38207e5a44 100644
--- a/src/modules/app_lua_sr/app_lua_sr_exp.c
+++ b/src/modules/app_lua_sr/app_lua_sr_exp.c
@@ -1105,7 +1105,7 @@ static int lua_sr_auth_pv_authenticate(lua_State *L, int 
hftype)
        realm.len = strlen(realm.s);
        passwd.len = strlen(passwd.s);
        ret = _lua_authb.pv_authenticate(env_L->msg, &realm, &passwd, flags, 
hftype,
-                       &env_L->msg->first_line.u.request.method);
+                       NULL, &env_L->msg->first_line.u.request.method);
 
        return app_lua_return_int(L, ret);
 }

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to