diff --git a/src/library/fetch.c b/src/library/fetch.c index c9146e6..06d4b30 100644 --- a/src/library/fetch.c +++ b/src/library/fetch.c @@ -82,6 +82,11 @@ FetchStatus fetch_uri(const char *uri, const char *target, bool verbose) goto bail; } + /* Handle future redirects from NVD */ + res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + if (res != CURLE_OK) { + goto bail; + } res = curl_easy_perform(curl); if (res != CURLE_OK) { goto bail;