X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fsession.c;h=e30688ab3e2e5939b0fe3b55ec3fd5403ca8ac64;hb=68a8eaafe5f43480f29308bfd2ec12ad54da43f1;hp=936bb4dff8060a6f48a0c8b8bf86204c611654fd;hpb=56f9ef4581d567248b6f83a3b15f39a0aca42895;p=src%2Fapp-framework-binder.git 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 */