[sr-dev] git:master:08c404f2: xcap_server: proper test of retun code for add lump rpl
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jul 21 13:52:21 CEST 2017
Module: kamailio
Branch: master
Commit: 08c404f245e55b37f71d4326afd959ecf1ea831c
URL: https://github.com/kamailio/kamailio/commit/08c404f245e55b37f71d4326afd959ecf1ea831c
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/08c404f245e55b37f71d4326afd959ecf1ea831c.diff
Patch: https://github.com/kamailio/kamailio/commit/08c404f245e55b37f71d4326afd959ecf1ea831c.patch
---
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;
More information about the sr-dev
mailing list