[Asterisk-cvs] asterisk manager.c,1.108,1.109
markster
markster
Sun Aug 7 18:55:20 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv2676
Modified Files:
manager.c
Log Message:
Fix poll error condition causing memory corruption (bug #4915)
Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- manager.c 5 Aug 2005 16:29:30 -0000 1.108
+++ manager.c 7 Aug 2005 22:59:04 -0000 1.109
@@ -1301,6 +1301,7 @@
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);
More information about the svn-commits
mailing list