From: Eric Leblond Date: Sat, 1 Jul 2017 23:20:48 +0000 (+0200) Subject: ulogd: fix crash when plugin version are incorrect X-Git-Tag: ulogd-2.0.7~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6155e8ad65e9db172ef56baffed498080891296c;p=thirdparty%2Fulogd2.git ulogd: fix crash when plugin version are incorrect Format string in error message had more arguments than given and it was resulting in a crash at start. --- diff --git a/src/ulogd.c b/src/ulogd.c index 919a317..b85d0ee 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -392,6 +392,7 @@ void ulogd_register_plugin(struct ulogd_plugin *me) if (strcmp(me->version, VERSION)) { ulogd_log(ULOGD_NOTICE, "plugin `%s' has incompatible version %s\n", + me->name, me->version); return; }