Module: kamailio
Branch: master
Commit: 08c404f245e55b37f71d4326afd959ecf1ea831c
URL:
https://github.com/kamailio/kamailio/commit/08c404f245e55b37f71d4326afd959e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-21T13:50:07+02:00
xcap_server: proper test of retun code for add lump rpl
---
Modified: src/modules/xcap_server/xcap_server.c
---
Diff:
https://github.com/kamailio/kamailio/commit/08c404f245e55b37f71d4326afd959e…
Patch:
https://github.com/kamailio/kamailio/commit/08c404f245e55b37f71d4326afd959e…
---
diff --git a/src/modules/xcap_server/xcap_server.c
b/src/modules/xcap_server/xcap_server.c
index 86f7816dd7..15c5a91209 100644
--- a/src/modules/xcap_server/xcap_server.c
+++ b/src/modules/xcap_server/xcap_server.c
@@ -284,7 +284,7 @@ static int xcaps_send_reply(sip_msg_t *msg, int code, str *reason,
}
if(body && body->len>0)
{
- if (add_lump_rpl(msg, body->s, body->len, LUMP_RPL_BODY) < 0)
+ if (add_lump_rpl(msg, body->s, body->len, LUMP_RPL_BODY) == 0)
{
LM_ERR("Error while adding reply lump\n");
return -1;