]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth-client: auth_master - Rename "cmd" parameter to parse_reply() to "reply"
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 2 Oct 2017 13:14:26 +0000 (15:14 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 27 Aug 2025 11:34:57 +0000 (13:34 +0200)
src/lib-auth-client/auth-master.c

index b0c33ee2b228c64661f4f189f6d366e0cb20200a..ffa747559c393240f21ebb0530468b869c663f10 100644 (file)
@@ -482,16 +482,16 @@ auth_master_event_finish(struct auth_master_connection *conn)
 }
 
 static int
-parse_reply(struct auth_master_lookup_ctx *ctx, const char *cmd,
+parse_reply(struct auth_master_lookup_ctx *ctx, const char *reply,
            const char *const *args)
 {
        struct auth_master_connection *conn = ctx->conn;
 
-       if (strcmp(cmd, ctx->expected_reply) == 0)
+       if (strcmp(reply, ctx->expected_reply) == 0)
                return 1;
-       if (strcmp(cmd, "NOTFOUND") == 0)
+       if (strcmp(reply, "NOTFOUND") == 0)
                return 0;
-       if (strcmp(cmd, "FAIL") == 0) {
+       if (strcmp(reply, "FAIL") == 0) {
                if (*args == NULL) {
                        e_error(conn->event, "Auth %s lookup failed",
                                ctx->expected_reply);
@@ -502,7 +502,7 @@ parse_reply(struct auth_master_lookup_ctx *ctx, const char *cmd,
                }
                return -2;
        }
-       e_error(conn->event, "Unknown reply: %s", cmd);
+       e_error(conn->event, "Unknown reply: %s", reply);
        return -1;
 }