Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix error path in http_access_verify_channel()
  • Loading branch information
perexg committed Dec 7, 2016
1 parent 061301b commit 64d4c88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/http.c
Expand Up @@ -892,8 +892,10 @@ http_access_verify_channel(http_connection_t *hc, int mask,

if (res) {
access_destroy(hc->hc_access);
if (http_verify_prepare(hc, &v))
if (http_verify_prepare(hc, &v)) {
hc->hc_access = NULL;
return -1;
}
hc->hc_access = access_get((struct sockaddr *)hc->hc_peer, hc->hc_username,
http_verify_callback, &v);
http_verify_free(&v);
Expand Down

0 comments on commit 64d4c88

Please sign in to comment.