diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-04 10:28:14 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-09-07 09:43:13 +0200 |
commit | 718de20a3cf830ba2da0a6c37e4588e4df251f1d (patch) | |
tree | 960a286802b4bd4f946a513a37d8525d6bd304b5 /src/afb-xreq.c | |
parent | 8a4e3b4a91e6aaabd24127bbbff963e449e8deab (diff) |
afb-auth: revert order of arguments (minor)
Change-Id: I29140a3c047799ee600051fb62998e7bb73d45f5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-xreq.c')
-rw-r--r-- | src/afb-xreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-xreq.c b/src/afb-xreq.c index d021c528..8c7a38d5 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -823,7 +823,7 @@ static int xreq_session_check_apply_v2(struct afb_xreq *xreq, uint32_t sessionfl return -1; } - if (auth && !afb_auth_check(auth, xreq)) { + if (auth && !afb_auth_check(xreq, auth)) { afb_xreq_fail_f(xreq, "denied", "authorisation refused"); errno = EPERM; return -1; |