summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-05-13 18:38:11 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-05-13 18:38:11 +0000
commit99cad5bf49504947ac8c2e214d59754b9c030e5c (patch)
treecf89f1f6c7333ac414bb7469287e30a36c77e20e
parentea3fb96b29fe937b1e82a61ad03e77e8a50a62fd (diff)
Merged revisions 115884 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r115884 | tilghman | 2008-05-13 13:36:13 -0500 (Tue, 13 May 2008) | 3 lines If the socket dies (read returns 0=EOF), return immediately. (Closes issue #12637) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/asterisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index 5bda2c97b..46ef1d956 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -2440,7 +2440,7 @@ static void ast_remotecontrol(char * data)
char buf[512] = "", *curline = buf, *nextline;
int not_written = 1;
- if (read(ast_consock, buf, sizeof(buf) - 1) < 0) {
+ if (read(ast_consock, buf, sizeof(buf) - 1) <= 0) {
break;
}