Permalink
Browse files

bugfix: fixed nil multi bulk replies in the reply parser.

  • Loading branch information...
1 parent 6a1c5ee commit 5044f16ccf7568b60bc8d7c79eb5d4d10e4227bc @agentzh agentzh committed Mar 1, 2012
Showing with 415 additions and 369 deletions.
  1. +3 −2 src/multi_bulk_reply.rl
  2. +384 −366 src/ngx_http_redis2_reply.c
  3. +18 −0 t/bugs.t
  4. +3 −1 util/build.sh
  5. +7 −0 valgrind.suppress
View
@@ -46,8 +46,9 @@
chunk_count = ([1-9] digit*) >start_reading_count $read_count
;
- multi_bulk_reply = "*" "0"+ CRLF @multi_bulk_finalize
- | "*" chunk_count CRLF @start_reading_chunk
+ multi_bulk_reply = "*" "-1" CRLF @multi_bulk_finalize
+ | "*" "0"+ CRLF @multi_bulk_finalize
+ | "*" chunk_count CRLF @start_reading_chunk
protected_chunk+
@multi_bulk_finalize
;
Oops, something went wrong.

0 comments on commit 5044f16

Please sign in to comment.