diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-19 01:40:08 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-19 01:40:08 +0200 |
commit | ac78dfcea6a9eea7221bc94ef4bd69078718b922 (patch) | |
tree | 82741a5ffecd4a164bff508bdb3f69cb0cb4242b /rcon.c | |
parent | 61bb636e42fd90549afb3aa0b4c648477b3f5989 (diff) |
Some minor cleanups
Diffstat (limited to 'rcon.c')
-rw-r--r-- | rcon.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); } |