From 96910ce9c4b59733d94162f422918256fe738e83 Mon Sep 17 00:00:00 2001 From: vnsavage Date: Fri, 29 Jul 2022 14:24:09 +0300 Subject: [PATCH] In mmc_flush_handler the return param is a pointer to integer and ZVAL_FALSE should not be used as it results in memory corruption. The failure case is not supposed to modify the return param. (#97) --- src/memcache.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/memcache.c b/src/memcache.c index 2cb675b..c05105a 100644 --- a/src/memcache.c +++ b/src/memcache.c @@ -2449,7 +2449,6 @@ static int mmc_flush_handler(mmc_t *mmc, mmc_request_t *request, int response, c } if (response == MMC_RESPONSE_CLIENT_ERROR) { - ZVAL_FALSE((zval *)param); php_error_docref(NULL, E_NOTICE, "Server %s (tcp %d, udp %d) failed with: %s (%d)", mmc->host, mmc->tcp.port,