From 3ea6fa5dfeed414d1c430a2e88a9dcf2f50abd20 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 21 Mar 2015 12:58:39 +1100 Subject: [PATCH] Don't bother storing the session of clients without a user set up or not authorised --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 0562741a..4f50c4cb 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -978,7 +978,7 @@ static void __disconnect_session(sdata_t *sdata, const stratum_instance_t *clien } } - if (!client->enonce1_64) + if (!client->enonce1_64 || !client->user_instance || !client->authorised) return; HASH_FIND_INT(sdata->disconnected_sessions, &client->session_id, session); if (session)