From: Timo Sirainen Date: Thu, 30 Apr 2009 21:02:33 +0000 (-0400) Subject: config: service names had an extra "service=". X-Git-Tag: 2.0.alpha1~871 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3c0a727bdc9b883af7ae098785643464d13e332;p=thirdparty%2Fdovecot%2Fcore.git config: service names had an extra "service=". --HG-- branch : HEAD --- diff --git a/src/config/config-connection.c b/src/config/config-connection.c index b823f4a590..92bc937662 100644 --- a/src/config/config-connection.c +++ b/src/config/config-connection.c @@ -203,9 +203,11 @@ static void config_connection_request(struct config_connection *conn, { const char *service = ""; - /* [ []] */ - if (args[0] != NULL) - service = args[0]; + /* [] */ + 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) {