summaryrefslogtreecommitdiff
path: root/rcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'rcon.c')
-rw-r--r--rcon.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/rcon.c b/rcon.c
index 11383c2..bc8c681 100644
--- a/rcon.c
+++ b/rcon.c
@@ -275,7 +275,7 @@ rcon_login_reply(struct cfg *cfg, struct uring_task *task, int res)
if (res < 0) {
debug(DBG_RCON, "res: %i\n", res);
- goto out;
+ goto error;
}
debug(DBG_RCON, "packet complete\n");
@@ -283,13 +283,13 @@ rcon_login_reply(struct cfg *cfg, struct uring_task *task, int res)
if (id != 1) {
error("rcon login failed - unexpected reply id (%" PRIi32 ")\n", id);
- goto out;
+ goto error;
} else if (type == RCON_PACKET_LOGIN_FAIL) {
error("rcon login failed - incorrect password\n");
- goto out;
+ goto error;
} else if (type != RCON_PACKET_LOGIN_OK) {
error("rcon login failed - unexpected reply type (%" PRIi32 ")\n", type);
- goto out;
+ goto error;
}
debug(DBG_RCON, "rcon login successful\n");
@@ -297,7 +297,7 @@ rcon_login_reply(struct cfg *cfg, struct uring_task *task, int res)
uring_tbuf_write(cfg, &rcon->task, rcon_stop_sent);
return;
-out:
+error:
uring_task_put(cfg, &rcon->task);
}