--- a/debuginfod/debuginfod-client.c 2023-02-11 13:11:20.426786902 +0800 +++ b/debuginfod/debuginfod-client.c 2023-02-11 13:11:46.306109380 +0800 @@ -1473,7 +1473,7 @@ curl_res = curl_easy_getinfo(target_handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &cl); - if (curl_res == CURLE_OK && cl >= 0) + if (curl_res == CURLE_OK) dl_size = (cl > LONG_MAX ? LONG_MAX : (long)cl); #else double cl;