From 1e927e1224b1ee17aaaf3c57aaeae763ba97f034 Mon Sep 17 00:00:00 2001 From: Eric Lambert Date: Tue, 24 Feb 2009 13:55:46 +0100 Subject: [PATCH] version_binary no longer attempts to parse invalid response --- libmemcached/memcached_version.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmemcached/memcached_version.c b/libmemcached/memcached_version.c index 40310f6f..5b2386f2 100644 --- a/libmemcached/memcached_version.c +++ b/libmemcached/memcached_version.c @@ -97,6 +97,7 @@ static inline memcached_return memcached_version_binary(memcached_st *ptr) { memcached_io_reset(&ptr->hosts[x]); rc= MEMCACHED_SOME_ERRORS; + continue; } ptr->hosts[x].major_version= (uint8_t)strtol(buffer, &p, 10); -- 2.30.2