Module: kamailio
Branch: 5.0
Commit: 43c9ad6f4dc2e20dd40a2d3dfa6b03f3dd79e3d4
URL:
https://github.com/kamailio/kamailio/commit/43c9ad6f4dc2e20dd40a2d3dfa6b03f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-02-12T08:50:54+01:00
lcr: fixed checking if there is more uris available for next_gw
- manual backport for 732a3153a0a41d5f951fff85de607f0b46ae73da
---
Modified: src/modules/lcr/lcr_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/43c9ad6f4dc2e20dd40a2d3dfa6b03f…
Patch:
https://github.com/kamailio/kamailio/commit/43c9ad6f4dc2e20dd40a2d3dfa6b03f…
---
diff --git a/src/modules/lcr/lcr_mod.c b/src/modules/lcr/lcr_mod.c
index 3644dacee5..20af1d5c7e 100644
--- a/src/modules/lcr/lcr_mod.c
+++ b/src/modules/lcr/lcr_mod.c
@@ -2512,8 +2512,8 @@ static int next_gw(struct sip_msg* _m, char* _s1, char* _s2)
* Take Request-URI user from ruri_user_avp and generate Request
* and Destination URIs. */
- if (!generate_uris(_m, r_uri, &(ruri_user_val.s), &r_uri_len, dst_uri,
- &dst_uri_len, &addr, &gw_index, &flags, &tag_str)) {
+ if (generate_uris(_m, r_uri, &(ruri_user_val.s), &r_uri_len, dst_uri,
+ &dst_uri_len, &addr, &gw_index, &flags, &tag_str) <= 0) {
return -1;
}
}