[sr-dev] git:master:5f780a20: topos: more appropriate error log when attepting to delete header

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 5 09:24:34 CEST 2016


Module: kamailio
Branch: master
Commit: 5f780a202b2132c4d622859a388432f0f6cbb3c7
URL: https://github.com/kamailio/kamailio/commit/5f780a202b2132c4d622859a388432f0f6cbb3c7

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-05T09:23:57+02:00

topos: more appropriate error log when attepting to delete header

---

Modified: modules/topos/tps_msg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5f780a202b2132c4d622859a388432f0f6cbb3c7.diff
Patch: https://github.com/kamailio/kamailio/commit/5f780a202b2132c4d622859a388432f0f6cbb3c7.patch

---

diff --git a/modules/topos/tps_msg.c b/modules/topos/tps_msg.c
index 37347ab..4757c0b 100644
--- a/modules/topos/tps_msg.c
+++ b/modules/topos/tps_msg.c
@@ -121,7 +121,7 @@ int tps_remove_headers(sip_msg_t *msg, uint32_t hdr)
 			continue;
 		l=del_lump(msg, hf->name.s-msg->buf, hf->len, 0);
 		if (l==0) {
-			LM_ERR("no memory\n");
+			LM_ERR("failed to remove the header\n");
 			return -1;
 		}
 	}




More information about the sr-dev mailing list