Code

frontend/connection: Reset state after handling a command.
authorSebastian Harl <sh@tokkee.org>
Mon, 11 Nov 2013 08:22:21 +0000 (09:22 +0100)
committerSebastian Harl <sh@tokkee.org>
Mon, 11 Nov 2013 08:22:21 +0000 (09:22 +0100)
src/frontend/connection.c

index 75ac8c91c845af15dd89efd74fd5778b82821268..940f61b493c0c0f284eb36fec4ae4d26ae07822e 100644 (file)
@@ -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 */