summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fcb7097)
raw | patch | inline | side by side (parent: fcb7097)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 24 Apr 2014 07:20:19 +0000 (09:20 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 24 Apr 2014 07:20:19 +0000 (09:20 +0200) |
src/frontend/connection.c | patch | blob | history |
index 8d7123a1beb13ab77956403659c8be8d81bfdc01..3d288410ee357ae4317477e255791afbc5bb5251 100644 (file)
return -1;
}
- /* reset */
- sdb_strbuf_sprintf(conn->errbuf, "");
-
switch (conn->cmd) {
case CONNECTION_PING:
status = sdb_connection_ping(conn);
assert(conn && (conn->cmd == CONNECTION_IDLE) && (! conn->cmd_len));
+ /* reset */
+ sdb_strbuf_sprintf(conn->errbuf, "");
+
conn->cmd = connection_get_int32(conn, 0);
conn->cmd_len = connection_get_int32(conn, sizeof(uint32_t));