svn commit: r1936975 - apr/apr-util/branches/1.6.x/memcache
| Newsgroups | gmane.comp.apache.apr.cvs |
|---|---|
| Message-ID | <178611260972.3598884.6777819321557256864@svn03-he-fi> |
Author: covener
Date: Fri Aug 7 14:23:29 2026
New Revision: 1936975
Log:
fix memcache version parsing
partial port of 1936966 from trunk
Modified:
apr/apr-util/branches/1.6.x/memcache/apr_memcache.c
Modified: apr/apr-util/branches/1.6.x/memcache/apr_memcache.c
==============================================================================
--- apr/apr-util/branches/1.6.x/memcache/apr_memcache.c Fri Aug 7 14:23:00 2026 (r1936974)
+++ apr/apr-util/branches/1.6.x/memcache/apr_memcache.c Fri Aug 7 14:23:29 2026 (r1936975)
@@ -1092,12 +1092,12 @@ apr_memcache_version(apr_memcache_server
}
if (strncmp(MS_VERSION, conn->buffer, MS_VERSION_LEN) == 0) {
- if (conn->blen < MS_VERSION_LEN + 2) {
+ if (conn->blen < MS_VERSION_LEN + 4) {
rv = APR_EGENERAL;
}
else {
*baton = apr_pstrmemdup(p, conn->buffer+MS_VERSION_LEN+1,
- conn->blen - MS_VERSION_LEN - 2);
+ conn->blen - MS_VERSION_LEN - 3);
rv = APR_SUCCESS;
}
}