}
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);
}
return -2;
}
- e_error(conn->event, "Unknown reply: %s", cmd);
+ e_error(conn->event, "Unknown reply: %s", reply);
return -1;
}