]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Fixed "auth input" debug messages.
authorTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 20:03:01 +0000 (15:03 -0500)
committerTimo Sirainen <tss@iki.fi>
Wed, 18 Nov 2009 20:03:01 +0000 (15:03 -0500)
--HG--
branch : HEAD

src/lib-auth/auth-master.c

index 3c479fedd821a3f426ab69f8bd6fedb26f00bc51..2b65ff5a017cf720e52880ff086e0f51212510a8 100644 (file)
@@ -165,12 +165,10 @@ static bool auth_lookup_reply_callback(const char *cmd, const char *const *args,
        if (ctx->return_value > 0) {
                len = str_array_length(args);
                ctx->fields = p_new(ctx->pool, const char *, len + 1);
-               for (i = 0; i < len; i++) {
-                       if (ctx->conn->debug)
-                               i_debug("auth input: %s", *args);
-
+               for (i = 0; i < len; i++)
                        ctx->fields[i] = p_strdup(ctx->pool, args[i]);
-               }
+               if (ctx->conn->debug)
+                       i_debug("auth input: %s", t_strarray_join(args, " "));
        }
        return TRUE;
 }