diff --git a/uwsgi.c b/uwsgi.c index 2fa362e3..1e1f4e18 100644 --- a/uwsgi.c +++ b/uwsgi.c @@ -3382,7 +3382,7 @@ int uwsgi_cluster_add_me() { ptrbuf += strlen(uwsgi.hostname); - if (uwsgi.sockets->name) { + if (uwsgi.sockets && uwsgi.sockets->name) { ustrlen = strlen(key2); *ptrbuf++ = (uint8_t) (ustrlen & 0xff); *ptrbuf++ = (uint8_t) ((ustrlen >> 8) & 0xff);