Module: kamailio
Branch: 5.1
Commit: 3de32c77ae628bfa11f8a826e5eb4607a435a828
URL:
https://github.com/kamailio/kamailio/commit/3de32c77ae628bfa11f8a826e5eb460…
Author: Alex Hermann <alex(a)hexla.nl>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-02-05T21:25:36+01:00
siputils: Return true if options_reply() succeeds
(cherry picked from commit 73d29ddde2b38cfea2c9ca4a84f4b8a246b7da50)
---
Modified: src/modules/siputils/options.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3de32c77ae628bfa11f8a826e5eb460…
Patch:
https://github.com/kamailio/kamailio/commit/3de32c77ae628bfa11f8a826e5eb460…
---
diff --git a/src/modules/siputils/options.c b/src/modules/siputils/options.c
index 67cf07856d..484c65f75f 100644
--- a/src/modules/siputils/options.c
+++ b/src/modules/siputils/options.c
@@ -112,7 +112,7 @@ int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
return -1;
}
else
- return 0;
+ return 1;
} else {
pkg_free(rpl_hf.s);
LM_ERR("add_lump_rpl failed\n");
@@ -124,6 +124,6 @@ int opt_reply(struct sip_msg* _msg, char* _foo, char* _bar) {
return -1;
}
else
- return 0;
+ return 1;
}