summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c
index 936bb4df..e30688ab 100644
--- a/src/session.c
+++ b/src/session.c
@@ -184,11 +184,13 @@ struct AFB_clientCtx *ctxClientGetForUuid (const char *uuid)
}
/* mimic old behaviour */
+/*
+TODO remove? not remove?
if (sessions.initok == NULL)
return NULL;
-
+*/
/* check the uuid if given */
- if (uuid != NULL && 1 + strlen(uuid) >= sizeof clientCtx->uuid)
+ if (uuid != NULL && strlen(uuid) >= sizeof clientCtx->uuid)
return NULL;
/* returns a new one */