Module: kamailio
Branch: master
Commit: 0d843f5f51750d51b66a5f0501320cb461072c26
URL:
https://github.com/kamailio/kamailio/commit/0d843f5f51750d51b66a5f0501320cb…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-12-28T15:38:09+01:00
acc_radius: use mem error macros
---
Modified: src/modules/acc_radius/acc_radius_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0d843f5f51750d51b66a5f0501320cb…
Patch:
https://github.com/kamailio/kamailio/commit/0d843f5f51750d51b66a5f0501320cb…
---
diff --git a/src/modules/acc_radius/acc_radius_mod.c
b/src/modules/acc_radius/acc_radius_mod.c
index adbfe18b00..b4e74c6656 100644
--- a/src/modules/acc_radius/acc_radius_mod.c
+++ b/src/modules/acc_radius/acc_radius_mod.c
@@ -184,7 +184,7 @@ static int acc_api_fixup(void **param, int param_no)
if(param_no == 1) {
accp = (struct acc_param *)pkg_malloc(sizeof(struct acc_param));
if(!accp) {
- LM_ERR("no more pkg mem\n");
+ PKG_MEM_ERROR;
return E_OUT_OF_MEM;
}
memset(accp, 0, sizeof(struct acc_param));