X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fauto.cc;h=d0b7dd4813bb3116738f5713d4e048b68496954b;hb=6c4917af4d1f4da7fa48550843bcbfb2a36c3761;hp=f06d9ca06242387247bfbefb42e8cad782d0685b;hpb=3a1352a68657a7506f37eab1f91057912063aa69;p=awesomized%2Flibmemcached diff --git a/libmemcached/auto.cc b/libmemcached/auto.cc index f06d9ca0..d0b7dd48 100644 --- a/libmemcached/auto.cc +++ b/libmemcached/auto.cc @@ -75,6 +75,11 @@ static memcached_return_t text_incr_decr(memcached_st *ptr, rc= memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL); + if (rc != MEMCACHED_SUCCESS) + { + return memcached_set_error(*instance, rc, MEMCACHED_AT); + } + /* So why recheck responce? Because the protocol is brain dead :) The number returned might end up equaling one of the string