From: Eric Lambert Date: Tue, 24 Feb 2009 12:55:46 +0000 (+0100) Subject: version_binary no longer attempts to parse invalid response X-Git-Tag: 0.27~29 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1e927e1224b1ee17aaaf3c57aaeae763ba97f034;p=m6w6%2Flibmemcached version_binary no longer attempts to parse invalid response --- 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);