From: Sebastian Harl Date: Mon, 11 Nov 2013 08:22:21 +0000 (+0100) Subject: frontend/connection: Reset state after handling a command. X-Git-Tag: sysdb-0.1.0~336^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=271b0d69f7a11eb3a5879d99eb9c73b3fe246874;p=sysdb.git frontend/connection: Reset state after handling a command. --- diff --git a/src/frontend/connection.c b/src/frontend/connection.c index 75ac8c9..940f61b 100644 --- a/src/frontend/connection.c +++ b/src/frontend/connection.c @@ -60,6 +60,7 @@ command_handle(sdb_conn_t *conn) assert(conn && conn->cmd && conn->cmd_len); /* XXX */ sdb_strbuf_skip(conn->buf, conn->cmd_len); + conn->cmd = conn->cmd_len = 0; return 0; } /* command_handle */