[sr-dev] git:master:412f155e: presence_dialog : fix compilation

lazedo luis.azedo at factorlusitano.com
Thu Dec 17 19:54:50 CET 2015


Module: kamailio
Branch: master
Commit: 412f155ede8587c1d439503cd7d0e783bc3c0d6b
URL: https://github.com/kamailio/kamailio/commit/412f155ede8587c1d439503cd7d0e783bc3c0d6b

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-12-17T18:54:45Z

presence_dialog : fix compilation

---

Modified: modules/presence_dialoginfo/notify_body.c

---

Diff:  https://github.com/kamailio/kamailio/commit/412f155ede8587c1d439503cd7d0e783bc3c0d6b.diff
Patch: https://github.com/kamailio/kamailio/commit/412f155ede8587c1d439503cd7d0e783bc3c0d6b.patch

---

diff --git a/modules/presence_dialoginfo/notify_body.c b/modules/presence_dialoginfo/notify_body.c
index 9ad377c..e6dc050 100644
--- a/modules/presence_dialoginfo/notify_body.c
+++ b/modules/presence_dialoginfo/notify_body.c
@@ -571,7 +571,7 @@ str *dlginfo_body_setversion(subs_t *subs, str *body) {
 	aux_body= (str*)pkg_malloc(sizeof(str));
 	if(aux_body== NULL)
 	{
-		ERR_MEM(PKG_MEM_STR);
+		LM_ERR("error allocating memory for aux body str\n");
 		return NULL;
 	}
 	memset(aux_body, 0, sizeof(str));
@@ -579,7 +579,7 @@ str *dlginfo_body_setversion(subs_t *subs, str *body) {
 	if(aux_body->s== NULL)
 	{
 		pkg_free(aux_body);
-		ERR_MEM(PKG_MEM_STR);
+		LM_ERR("error allocating memory for aux body buffer\n");
 		return NULL;
 	}
 	memcpy(aux_body->s, body->s, body->len);




More information about the sr-dev mailing list