From c349a7eda7abc50df4c7edd1ee85ca14d37aaa34 Mon Sep 17 00:00:00 2001 From: Michael Roosz Date: Sun, 24 Jan 2021 14:06:07 +0100 Subject: [PATCH] * libwget/http.c (wget_http_get_response_cb): Fix NULL ptr access --- libwget/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libwget/http.c b/libwget/http.c index 8ca4ad8c..ce8a46f8 100644 --- a/libwget/http.c +++ b/libwget/http.c @@ -1051,6 +1051,7 @@ wget_http_response *wget_http_get_response_cb(wget_http_connection *conn) } } if (!nread) goto cleanup; + if (!p) goto cleanup; if (resp && resp->code == HTTP_STATUS_RANGE_NOT_SATISFIABLE) { /*