Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: coverity - fix hc_access assignment when freed
  • Loading branch information
perexg committed May 23, 2016
1 parent e425e65 commit c55cef9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/http.c
Expand Up @@ -844,8 +844,10 @@ http_access_verify(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 c55cef9

Please sign in to comment.