Module: kamailio
Branch: 5.2
Commit: ac37b2faf754548d0f3c6cfb14bc1e547eed03ed
URL:
https://github.com/kamailio/kamailio/commit/ac37b2faf754548d0f3c6cfb14bc1e5…
Author: Alex Hermann <alex(a)hexla.nl>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-02-05T21:25:28+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/ac37b2faf754548d0f3c6cfb14bc1e5…
Patch:
https://github.com/kamailio/kamailio/commit/ac37b2faf754548d0f3c6cfb14bc1e5…
---
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;
}