projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef753b5
)
Fix poll error condition causing memory corruption (bug #4915)
author
Mark Spencer
<markster@digium.com>
Sun, 7 Aug 2005 22:59:04 +0000
(22:59 +0000)
committer
Mark Spencer
<markster@digium.com>
Sun, 7 Aug 2005 22:59:04 +0000
(22:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6303
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
manager.c
patch
|
blob
|
history
diff --git
a/manager.c
b/manager.c
index
d0c3eef
..
f868b95
100755
(executable)
--- a/
manager.c
+++ b/
manager.c
@@
-1301,6
+1301,7
@@
static int get_input(struct mansession *s, char *output)
res = poll(fds, 1, -1);
if (res < 0) {
ast_log(LOG_WARNING, "Select returned error: %s\n", strerror(errno));
+ return -1;
} else if (res > 0) {
ast_mutex_lock(&s->lock);
res = read(s->fd, s->inbuf + s->inlen, sizeof(s->inbuf) - 1 - s->inlen);