From: José Bollo Date: Fri, 8 Apr 2016 15:50:21 +0000 (+0200) Subject: enforce creation of contextes X-Git-Tag: blowfish_2.0.1~192 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=e267cc7d7ab546abea72549e425042403dd76bc6;p=src%2Fapp-framework-binder.git enforce creation of contextes Change-Id: I5278cf0f73a417c98d2cd4c3572efed39766b2d5 Signed-off-by: José Bollo --- 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 */