diff options
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); } |