Mercurial > audlegacy-plugins
changeset 3124:b74c1fb4212f
neon: Fix crashes on buffer underrun due to NEON_READER_ERROR. (closes #57)
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Wed, 06 May 2009 12:10:28 -0500 |
parents | a2093254960a |
children | d4c3a48f1d92 |
files | src/neon/neon.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/neon/neon.c Wed May 06 12:11:06 2009 -0400 +++ b/src/neon/neon.c Wed May 06 12:10:28 2009 -0500 @@ -990,7 +990,7 @@ } if (NULL == h->reader) { - if (NEON_READER_EOF != h->reader_status.status) { + if (NEON_READER_EOF != h->reader_status.status && NEON_READER_ERROR != h->reader_status.status) { /* * There is no reader thread yet. Read the first bytes from * the network ourselves, and then fire up the reader thread