From 486cec839029052716fc88ad64b41e074d0ee1ab Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Sat, 19 Oct 2013 15:49:08 +0800 Subject: [PATCH] add back check --- server/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/control.c b/server/control.c index 59f9b73..4342c8c 100644 --- a/server/control.c +++ b/server/control.c @@ -134,7 +134,7 @@ void Control_Handler(FCGIContext *context, char *params) { return; } - if (strcmp(g_controls.user_name, context->user_name) != 0) + if ((*g_controls.user_name) != '\0' && strcmp(g_controls.user_name, context->user_name) != 0) { if (context->user_type != USER_ADMIN) { FCGI_RejectJSON(context, "Another user has an experiment in progress."); -- 2.20.1