From: Brian Aker Date: Thu, 18 Mar 2010 22:28:09 +0000 (-0700) Subject: We didn't catch client_Error. X-Git-Tag: 0.40~31 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8206bfb6cdc750ac31756eaa7af953298567021a;p=m6w6%2Flibmemcached We didn't catch client_Error. --- diff --git a/libmemcached/auto.c b/libmemcached/auto.c index fde81d47..d94d26f1 100644 --- a/libmemcached/auto.c +++ b/libmemcached/auto.c @@ -56,7 +56,12 @@ static memcached_return_t text_incr_decr(memcached_st *ptr, use it. We still called memcached_response() though since it worked its magic for non-blocking IO. */ - if (!strncmp(buffer, "ERROR\r\n", 7)) + if (! strncmp(buffer, "ERROR\r\n", 7)) + { + *value= 0; + rc= MEMCACHED_PROTOCOL_ERROR; + } + else if (! strncmp(buffer, "CLIENT_ERROR\r\n", 14)) { *value= 0; rc= MEMCACHED_PROTOCOL_ERROR;