From: Steve Yen Date: Tue, 20 Jan 2009 20:59:52 +0000 (-0800) Subject: memcached_io_reset passed wrong struct X-Git-Tag: 0.26~14 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=db4741c1f65edf1323e4aa0879c4589244af1971;p=awesomized%2Flibmemcached memcached_io_reset passed wrong struct --- diff --git a/libmemcached/memcached_get.c b/libmemcached/memcached_get.c index a7bf3a96..2cc40151 100644 --- a/libmemcached/memcached_get.c +++ b/libmemcached/memcached_get.c @@ -286,7 +286,7 @@ static memcached_return binary_mget_by_key(memcached_st *ptr, ptr->flags & MEM_BINARY_PROTOCOL); unlikely (vk != MEMCACHED_SUCCESS) { if (x > 0) - memcached_io_reset(ptr); + memcached_io_reset(&ptr->hosts[server_key]); return vk; }