From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Tue, 2 Jul 2019 09:05:02 +0000 (+0200) Subject: Fix return code introduced by #3182 X-Git-Tag: 5.10.0~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3201%2Fhead;p=thirdparty%2Fcollectd.git Fix return code introduced by #3182 Change-Id: I0972f74f3fff05cf29fa9b0be383f0b0df1e6d03 Fixes: #3200 --- diff --git a/src/syslog.c b/src/syslog.c index d3be5c954..b4e2c0cfc 100644 --- a/src/syslog.c +++ b/src/syslog.c @@ -56,9 +56,10 @@ static int sl_config(const char *key, const char *value) { } } else if (strcasecmp(key, "NotifyLevel") == 0) { notif_severity = parse_notif_severity(value); - if (notif_severity < 0) + if (notif_severity < 0) { ERROR("syslog: invalid notification severity [%s]", value); - return 1; + return 1; + } } return 0;