From ac78dfcea6a9eea7221bc94ef4bd69078718b922 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Fri, 19 Jun 2020 01:40:08 +0200 Subject: Some minor cleanups --- rcon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rcon.c') 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); } -- cgit v1.2.3