Module: kamailio
Branch: master
Commit: 9e703c1c1eb362bd68e53b38021aa42f8b173d0c
URL:
https://github.com/kamailio/kamailio/commit/9e703c1c1eb362bd68e53b38021aa42…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-09-16T09:38:26+02:00
log_systemd: return in case the xavp is not valid
---
Modified: src/modules/log_systemd/journal_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9e703c1c1eb362bd68e53b38021aa42…
Patch:
https://github.com/kamailio/kamailio/commit/9e703c1c1eb362bd68e53b38021aa42…
---
diff --git a/src/modules/log_systemd/journal_send.c
b/src/modules/log_systemd/journal_send.c
index a3a95d57e7..e78d8c0e3c 100644
--- a/src/modules/log_systemd/journal_send.c
+++ b/src/modules/log_systemd/journal_send.c
@@ -40,6 +40,7 @@ int k_sd_journal_send_xavp(str *rname)
if (!rxavp || rxavp->val.type != SR_XTYPE_XAVP) {
LM_ERR("not a valid xavp: %.*s?\n", rname->len, rname->s);
+ return -1;
}
/* first, count xavp nodes */