fix use-after-free issue in socket_type

This commit is contained in:
arvidn 2019-07-20 09:27:35 -07:00 committed by Arvid Norberg
parent 178093f81b
commit 057c6684f2
1 changed files with 1 additions and 1 deletions

View File

@ -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