This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new 67369fe65 Separate the NULL pool (error) case and the shrink case.
67369fe65 is described below
commit 67369fe65ad86cad670f51336cf4a58a78d68ce2
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jun 9 15:42:42 2026 +0100
Separate the NULL pool (error) case and the shrink case.
---
native/common/jk_pool.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/native/common/jk_pool.c b/native/common/jk_pool.c
index 3c4ccf714..4b6bb0911 100644
--- a/native/common/jk_pool.c
+++ b/native/common/jk_pool.c
@@ -108,7 +108,10 @@ 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)) {
+ if (!p) {
+ return NULL;
+ }
+ if (sz < old_sz) {
return (void*)old;
}
if (!old)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]