From 64d4c88b7c44dd0b20de1f5395f42f3fb4088630 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 7 Dec 2016 14:20:15 +0100 Subject: [PATCH] fix error path in http_access_verify_channel() --- src/http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index b84957ead..aa7fc5819 100644 --- a/src/http.c +++ b/src/http.c @@ -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); -- 2.47.3