# HG changeset patch # User William Pitcock # Date 1241629828 18000 # Node ID b74c1fb4212f9631a1a6d718c91d295f88a88112 # Parent a2093254960a43819d6a7166d9fa3fad14e0ca21 neon: Fix crashes on buffer underrun due to NEON_READER_ERROR. (closes #57) diff -r a2093254960a -r b74c1fb4212f src/neon/neon.c --- 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