Module: kamailio
Branch: 5.1
Commit: 56a9993c81123c4ee95ecc347aee28abbecb7e2a
URL:
https://github.com/kamailio/kamailio/commit/56a9993c81123c4ee95ecc347aee28a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-12-07T15:25:40+01:00
log_systemd: fixed typo in previous commit
(cherry picked from commit 41d66fa2293386bcc3765d6025c2f9b1bd89cd16)
---
Modified: src/modules/log_systemd/log_systemd_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/56a9993c81123c4ee95ecc347aee28a…
Patch:
https://github.com/kamailio/kamailio/commit/56a9993c81123c4ee95ecc347aee28a…
---
diff --git a/src/modules/log_systemd/log_systemd_mod.c
b/src/modules/log_systemd/log_systemd_mod.c
index eac379c0ab..d948b9a60b 100644
--- a/src/modules/log_systemd/log_systemd_mod.c
+++ b/src/modules/log_systemd/log_systemd_mod.c
@@ -106,7 +106,7 @@ static int ki_sd_journal_print(sip_msg_t* msg, str* slev, str* stxt)
/* one of LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING,
* LOG_NOTICE, LOG_INFO, LOG_DEBUG, as defined in syslog.h, see syslog(3) */
ilev = LOG_DEBUG;
- if(slev->len==9 && strncasecmp(slev->1s, "LOG_EMERG",
slev->len)==0) {
+ if(slev->len==9 && strncasecmp(slev->s, "LOG_EMERG",
slev->len)==0) {
ilev = LOG_EMERG;
} else if(slev->len==9 && strncasecmp(slev->s, "LOG_ALERT",
slev->len)==0) {
ilev = LOG_ALERT;