Module: kamailio
Branch: master
Commit: dcc801412a1c3a7a619aa0f91f098a88a01502de
URL:
https://github.com/kamailio/kamailio/commit/dcc801412a1c3a7a619aa0f91f098a8…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-11-23T22:58:27+01:00
xmpp: use SHM_MEM_ERROR logging helper
---
Modified: src/modules/xmpp/xmpp_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dcc801412a1c3a7a619aa0f91f098a8…
Patch:
https://github.com/kamailio/kamailio/commit/dcc801412a1c3a7a619aa0f91f098a8…
---
diff --git a/src/modules/xmpp/xmpp_api.c b/src/modules/xmpp/xmpp_api.c
index a078e2be7f..295385bbc2 100644
--- a/src/modules/xmpp/xmpp_api.c
+++ b/src/modules/xmpp/xmpp_api.c
@@ -43,7 +43,7 @@ int init_xmpp_cb_list(void)
{
_xmpp_cb_list = (xmpp_cb_list_t*)shm_malloc(sizeof(xmpp_cb_list_t));
if (_xmpp_cb_list==0) {
- LM_CRIT("no more shared memory\n");
+ SHM_MEM_ERROR;
return -1;
}
memset(_xmpp_cb_list, 0, sizeof(xmpp_cb_list_t));
@@ -91,7 +91,7 @@ int register_xmpp_cb( int types, xmpp_cb_f f, void *param )
/* build callback structure */
if (!(it=(xmpp_callback_t*)shm_malloc(sizeof(xmpp_callback_t))))
{
- LM_ERR("no more share memory\n");
+ SHM_MEM_ERROR;
return E_OUT_OF_MEM;
}