Code

frontend/store: Fixed parsing of STORE command.
authorSebastian Harl <sh@tokkee.org>
Fri, 16 Jan 2015 23:57:45 +0000 (00:57 +0100)
committerSebastian Harl <sh@tokkee.org>
Fri, 16 Jan 2015 23:57:45 +0000 (00:57 +0100)
After parsing the type, keep it still around in the current buffer. The
sdb_proto_unmarshal_<type> functions expect to find it as well.

src/frontend/store.c

index 5f3ce846ec16865790874fb90018a3f4c5916ea3..7285b349b39be9994b92add89167bb3aaaacb174 100644 (file)
@@ -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: