* libwget/http.c (wget_http_get_response_cb): Fix NULL ptr access

This commit is contained in:
Michael Roosz
2021-01-24 14:06:07 +01:00
committed by Tim Rühsen
parent e4f4052ddd
commit c349a7eda7

View File

@ -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) {
/*