]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: Fix logging unknown client command error
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 13 Dec 2017 13:54:11 +0000 (15:54 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 13 Dec 2017 13:54:11 +0000 (15:54 +0200)
src/stats/client-writer.c

index 402b66de71b676b87f65a8e7036703f4906a01f0..5da88c4dc81f6d834bb75fe30ea1b9fb36184a84 100644 (file)
@@ -244,8 +244,10 @@ writer_client_input_args(struct connection *conn, const char *const *args)
                ret = writer_client_input_event_end(client, args+1, &error);
        else if (strcmp(cmd, "CATEGORY") == 0)
                ret = writer_client_input_category(client, args+1, &error);
-       else
+       else {
+               error = "Unknown command";
                ret = FALSE;
+       }
        if (!ret) {
                i_error("Client sent invalid input for %s: %s (input: %s)",
                        cmd, error, t_strarray_join(args, "\t"));