X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-api-so.c;h=78d6d1b61b4983d85bb70250f44520e77617004b;hb=cd438c6c7074c9c279f15dd9e5c69b90b412b8a5;hp=9ab3e6214be47d5707c1ec63acc2aa220d7e0b57;hpb=fca2e14e1d57d7b89d1a6de07075cc0e6e157ca7;p=src%2Fapp-framework-binder.git 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");