From e267cc7d7ab546abea72549e425042403dd76bc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Fri, 8 Apr 2016 17:50:21 +0200 Subject: [PATCH] enforce creation of contextes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I5278cf0f73a417c98d2cd4c3572efed39766b2d5 Signed-off-by: José Bollo --- src/session.c | 6 ++++-- 1 file 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 */ -- 2.16.6