aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-23 17:09:26 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-23 17:09:26 +0200
commitcd438c6c7074c9c279f15dd9e5c69b90b412b8a5 (patch)
treefc295de78fb8039928239c4b385d70d7fde48d69
parentbc54194e4d9ff8f25f7bbb1561b84bee074d8262 (diff)
fix regression of AFB_SESSION_NONE
Change-Id: I1a03b99aa24bac7f801f94cfa0c8fd1cf28107e6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-api-so.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-api-so.c b/src/afb-api-so.c
index 9ab3e621..78d6d1b6 100644
--- a/src/afb-api-so.c
+++ b/src/afb-api-so.c
@@ -99,7 +99,7 @@ static void call_check(struct afb_req req, struct afb_context *context, const st
int stag = (int)verb->session;
- if (stag != (AFB_SESSION_CREATE|AFB_SESSION_CLOSE|AFB_SESSION_RENEW|AFB_SESSION_CHECK|AFB_SESSION_LOA_EQ)) {
+ if ((stag & (AFB_SESSION_CREATE|AFB_SESSION_CLOSE|AFB_SESSION_RENEW|AFB_SESSION_CHECK|AFB_SESSION_LOA_EQ)) != 0) {
if (!afb_context_check(context)) {
afb_context_close(context);
afb_req_fail(req, "failed", "invalid token's identity");