From: Sebastian Harl Date: Fri, 16 Jan 2015 23:57:45 +0000 (+0100) Subject: frontend/store: Fixed parsing of STORE command. X-Git-Tag: sysdb-0.7.0~55 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=fb2335d70cc065307f889e6085553cdff344c36f frontend/store: Fixed parsing of STORE command. After parsing the type, keep it still around in the current buffer. The sdb_proto_unmarshal_ functions expect to find it as well. --- diff --git a/src/frontend/store.c b/src/frontend/store.c index 5f3ce84..7285b34 100644 --- a/src/frontend/store.c +++ b/src/frontend/store.c @@ -92,7 +92,6 @@ sdb_fe_store(sdb_conn_t *conn) "STORE: Invalid command length %zu", len); return -1; } - buf += n; len -= n; switch (type) { case SDB_HOST: