Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
enforce creation of contextes
[src/app-framework-binder.git]
/
src
/
session.c
diff --git
a/src/session.c
b/src/session.c
index
936bb4d
..
e30688a
100644
(file)
--- a/
src/session.c
+++ b/
src/session.c
@@
-184,11
+184,13
@@
struct AFB_clientCtx *ctxClientGetForUuid (const char *uuid)
}
/* mimic old behaviour */
}
/* mimic old behaviour */
+/*
+TODO remove? not remove?
if (sessions.initok == NULL)
return NULL;
if (sessions.initok == NULL)
return NULL;
-
+*/
/* check the uuid if given */
/* 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 */
return NULL;
/* returns a new one */