|
@@ -294,7 +294,7 @@ int th_mask_contact(sip_msg_t *msg)
|
|
p = (char*)pkg_malloc(out.len+3);
|
|
p = (char*)pkg_malloc(out.len+3);
|
|
if(p==NULL)
|
|
if(p==NULL)
|
|
{
|
|
{
|
|
- LM_ERR("failed to get more pkg\n");
|
|
|
|
|
|
+ PKG_MEM_ERROR;
|
|
pkg_free(out.s);
|
|
pkg_free(out.s);
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
@@ -441,7 +441,7 @@ int th_unmask_via(sip_msg_t *msg, str *cookie)
|
|
via2=pkg_malloc(sizeof(struct via_body));
|
|
via2=pkg_malloc(sizeof(struct via_body));
|
|
if (via2==0)
|
|
if (via2==0)
|
|
{
|
|
{
|
|
- LM_ERR("out of memory\n");
|
|
|
|
|
|
+ PKG_MEM_ERROR;
|
|
pkg_free(out.s);
|
|
pkg_free(out.s);
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
@@ -983,7 +983,7 @@ int th_add_via_cookie(sip_msg_t *msg, struct via_body *via)
|
|
out.s = (char*)pkg_malloc(out.len+1);
|
|
out.s = (char*)pkg_malloc(out.len+1);
|
|
if(out.s==0)
|
|
if(out.s==0)
|
|
{
|
|
{
|
|
- LM_ERR("no pkg memory\n");
|
|
|
|
|
|
+ PKG_MEM_ERROR;
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
out.s[0] = ';';
|
|
out.s[0] = ';';
|
|
@@ -1009,7 +1009,7 @@ int th_add_hdr_cookie(sip_msg_t *msg)
|
|
h.s = (char*)pkg_malloc(h.len+1);
|
|
h.s = (char*)pkg_malloc(h.len+1);
|
|
if(h.s == 0)
|
|
if(h.s == 0)
|
|
{
|
|
{
|
|
- LM_ERR("no more pkg\n");
|
|
|
|
|
|
+ PKG_MEM_ERROR;
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
anchor = anchor_lump(msg, msg->unparsed - msg->buf, 0, 0);
|
|
anchor = anchor_lump(msg, msg->unparsed - msg->buf, 0, 0);
|