diff options
author | dormando <dormando@rydia.net> | 2022-01-25 15:35:53 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-01-25 15:37:11 -0800 |
commit | 90d2523bc4bf369b950c143904dce816e42dce35 (patch) | |
tree | 6d8b8360b98540a583658e1129022cfe729b8085 /memcached.c | |
parent | a7aafbbfe34ce2c0b564108a6b0d7a118be968e5 (diff) | |
download | memcached-90d2523bc4bf369b950c143904dce816e42dce35.tar.gz |
proxy: fix crash on SIGHUP when proxy not enabled
... requires proxy to be compiled, but not actually in use in order to
fail.
Reported by @smukil in #860
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/memcached.c b/memcached.c index dd1b8ed..0f58744 100644 --- a/memcached.c +++ b/memcached.c @@ -3836,7 +3836,9 @@ static void clock_handler(const evutil_socket_t fd, const short which, void *arg authfile_load(settings.auth_file); #ifdef PROXY - proxy_start_reload(settings.proxy_ctx); + if (settings.proxy_ctx) { + proxy_start_reload(settings.proxy_ctx); + } #endif } |