diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-08 17:50:21 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-08 17:50:21 +0200 |
commit | e267cc7d7ab546abea72549e425042403dd76bc6 (patch) | |
tree | b2b7688120db38433e130f7202dcbf2dcd0b2605 | |
parent | 2c5dc2d88b8d2434934315fb285f4efade040543 (diff) |
enforce creation of contextes
Change-Id: I5278cf0f73a417c98d2cd4c3572efed39766b2d5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/session.c | 6 |
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 */ |