diff options
author | michael-grunder <michael.grunder@gmail.com> | 2014-02-21 03:48:15 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2014-02-21 03:48:15 +0400 |
commit | d2832bfa85534affabdb9e10261ec50c4eb22957 (patch) | |
tree | 755d04562db90954b892aa9f5e86a08a9dfdcb63 | |
parent | 92782639b0329ff91658a0602a3d816446a3663d (diff) |
We need to return immediately from our variant reply parsing
function if we get a protocol error, rather than just throwing
and exception and breaking execution of the loop.
Addresses #437
-rw-r--r-- | library.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1824,7 +1824,7 @@ redis_read_variant_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zv default: // Protocol error zend_throw_exception_ex(redis_exception_ce, 0 TSRMLS_CC, "protocol error, got '%c' as reply-type byte\n", reply_type); - break; + return FAILURE; } IF_MULTI_OR_PIPELINE() { |