[sr-dev] git:master:9e703c1c: log_systemd: return in case the xavp is not valid

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 16 09:40:13 CEST 2019


Module: kamailio
Branch: master
Commit: 9e703c1c1eb362bd68e53b38021aa42f8b173d0c
URL: https://github.com/kamailio/kamailio/commit/9e703c1c1eb362bd68e53b38021aa42f8b173d0c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/9e703c1c1eb362bd68e53b38021aa42f8b173d0c.diff
Patch: https://github.com/kamailio/kamailio/commit/9e703c1c1eb362bd68e53b38021aa42f8b173d0c.patch

---

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 */




More information about the sr-dev mailing list