]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
ulogd: fix crash when plugin version are incorrect
authorEric Leblond <eric@regit.org>
Sat, 1 Jul 2017 23:20:48 +0000 (01:20 +0200)
committerEric Leblond <eric@regit.org>
Sat, 1 Jul 2017 23:20:48 +0000 (01:20 +0200)
Format string in error message had more arguments than given and
it was resulting in a crash at start.

src/ulogd.c

index 919a3172497f8504d7baae12b381e2e55465b2b4..b85d0ee0b425564056166c26f0abcb37822d2822 100644 (file)
@@ -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;
        }