Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: fix logic error in 85e1bbb
When you're allowed access to a channel, the mask check was ignored.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
  • Loading branch information
swegener authored and perexg committed Nov 10, 2015
1 parent 8e56d4b commit 725cab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.c
Expand Up @@ -587,7 +587,7 @@ http_access_verify_channel(http_connection_t *hc, int mask,
res = access_verify2(hc->hc_access, mask);
}

if (!channel_access(ch, hc->hc_access, 0))
if (!res && !channel_access(ch, hc->hc_access, 0))
res = -1;

return res;
Expand Down

0 comments on commit 725cab5

Please sign in to comment.