summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92936cf)
raw | patch | inline | side by side (parent: 92936cf)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 23 Apr 2014 20:24:00 +0000 (22:24 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 23 Apr 2014 20:24:00 +0000 (22:24 +0200) |
src/frontend/connection.c | patch | blob | history |
index aa0325570171c9f6f0807edc92c953ace241004d..6b785392a1255311d5fae116a1bfb334186534db 100644 (file)
const char *errmsg = "Authentication required";
sdb_connection_send(conn, CONNECTION_ERROR,
(uint32_t)strlen(errmsg), errmsg);
+
+ /* remove the command from the buffer */
+ if (conn->cmd_len)
+ sdb_strbuf_skip(conn->buf, 0, conn->cmd_len);
return -1;
}