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

Author: lazedo <[email protected]>
Committer: lazedo <[email protected]>
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);


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to