projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
com_cs: Return a syntax error if argc > 2.
[paraslash.git]
/
mysql_selector.c
diff --git
a/mysql_selector.c
b/mysql_selector.c
index
edd2c08
..
f41afcd
100644
(file)
--- a/
mysql_selector.c
+++ b/
mysql_selector.c
@@
-2040,8
+2040,10
@@
static int com_cs(int fd, int argc, char *argv[])
char *old_stream = get_current_stream();
int csp = !strcmp(argv[0], "csp");
+ ret = -E_MYSQL_SYNTAX;
+ if (argc > 2)
+ goto out;
if (argc == 1) {
- ret = -E_MYSQL_SYNTAX;
if (csp)
goto out;
ret = send_va_buffer(fd, "%s\n", old_stream);