This is an automated email from the ASF dual-hosted git repository. ChristopherSchultz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git
commit 101ddeec5049d1127e1c74e6e2522e897b3d4daa Author: Christopher Schultz <[email protected]> AuthorDate: Mon Jun 8 11:39:06 2026 -0400 Return existing pool on shrink-request This API doesn't support shrinking, but the existing pool should be sufficient. --- native/common/jk_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/common/jk_pool.c b/native/common/jk_pool.c index e3da1bd45..5c8de05e9 100644 --- a/native/common/jk_pool.c +++ b/native/common/jk_pool.c @@ -104,7 +104,7 @@ void *jk_pool_realloc(jk_pool_t *p, size_t sz, const void *old, size_t old_sz) char *rc; if (!p || (sz < old_sz)) { - return NULL; + return (void*)old; } if (!old) return jk_pool_calloc(p, sz); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
