]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: service names had an extra "service=".
authorTimo Sirainen <tss@iki.fi>
Thu, 30 Apr 2009 21:02:33 +0000 (17:02 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 Apr 2009 21:02:33 +0000 (17:02 -0400)
--HG--
branch : HEAD

src/config/config-connection.c

index b823f4a590d2968c08e35d49339c5ddee9d82a6e..92bc937662bc088a711ad85fbf202ea3bce18e0e 100644 (file)
@@ -203,9 +203,11 @@ static void config_connection_request(struct config_connection *conn,
 {
        const char *service = "";
 
-       /* [<service> [<args>]] */
-       if (args[0] != NULL)
-               service = args[0];
+       /* [<args>] */
+       for (; *args != NULL; args++) {
+               if (strncmp(*args, "service=", 8) == 0)
+                       service = *args + 8;
+       }
 
        o_stream_cork(conn->output);
        if ((flags & CONFIG_DUMP_FLAG_HUMAN) == 0) {