version_binary no longer attempts to parse invalid response
authorEric Lambert <eric.lambert@sun.com>
Tue, 24 Feb 2009 12:55:46 +0000 (13:55 +0100)
committerEric Lambert <eric.lambert@sun.com>
Tue, 24 Feb 2009 12:55:46 +0000 (13:55 +0100)
libmemcached/memcached_version.c

index 40310f6fa570d4fd826218d53af128e4e88328c0..5b2386f299655f2a8840f5beca98d705539f69d3 100644 (file)
@@ -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);