From 057c6684f20065176926afa21e01a4473a551e88 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 20 Jul 2019 09:27:35 -0700 Subject: [PATCH] fix use-after-free issue in socket_type --- src/socket_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_type.cpp b/src/socket_type.cpp index 45e3146bf..3078f94cf 100644 --- a/src/socket_type.cpp +++ b/src/socket_type.cpp @@ -167,7 +167,7 @@ namespace aux { #define MAYBE_ASIO_DEBUGGING #endif - char const buffer[] = ""; + static char const buffer[] = ""; // chasing the async_shutdown by a write is a trick to close the socket as // soon as we've sent the close_notify, without having to wait to receive a // response from the other end