From 15a582d046e6620159e73d3f58773bcc152fd45a Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Fri, 17 Jun 2011 07:26:36 +0200 Subject: [PATCH] allow clustering without a socket --- uwsgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);