aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-13 05:24:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-13 05:24:33 +0000
commit04b29acc66b27c26c51f1bb2ee44aeba9a22f89a (patch)
tree5c4480300c1a7e0d4607858b6ddd720b708d1042 /main/asterisk.c
parentdfc2babc693a8a66256ec4983ce30a6404857cf3 (diff)
Properly handle the case where read() may return the text for more than one
CLI command at once for a remote console. (closes issue #10888) Reported by: jamesgolovich Patches: asterisk-climultiple.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85532 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 53e4d042b..9f0f049de 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -936,7 +936,7 @@ static void *netconsole(void *vconsole)
break;
}
tmp[res] = 0;
- ast_cli_command(con->fd, tmp);
+ ast_cli_command_multiple(con->fd, res, tmp);
}
if (fds[1].revents) {
res = read(con->p[0], tmp, sizeof(tmp));