Module: kamailio
Branch: master
Commit: 18698fa9f8e242cf59273538baca448ea68d6194
URL:
https://github.com/kamailio/kamailio/commit/18698fa9f8e242cf59273538baca448…
Author: Pantelis Kolatsis <pk(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-29T11:36:15Z
gzcompress: convert to memory logging helper
---
Modified: src/modules/gzcompress/gzcompress_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/18698fa9f8e242cf59273538baca448…
Patch:
https://github.com/kamailio/kamailio/commit/18698fa9f8e242cf59273538baca448…
---
diff --git a/src/modules/gzcompress/gzcompress_mod.c
b/src/modules/gzcompress/gzcompress_mod.c
index 3ff22d723de..4d7e24870f3 100644
--- a/src/modules/gzcompress/gzcompress_mod.c
+++ b/src/modules/gzcompress/gzcompress_mod.c
@@ -222,7 +222,7 @@ int gzc_set_msg_body(sip_msg_t *msg, str *obody, str *nbody)
buf=pkg_malloc(nbody->len * sizeof(char));
if (buf==0)
{
- LM_ERR("out of pkg memory\n");
+ PKG_MEM_ERROR;
return -1;
}
memcpy(buf, nbody->s, nbody->len);