Security: don't download files we don't have checksums for. #324

This commit is contained in:
Andrey Smirnov committed 2015-12-22 13:52:53 +03:00
1 parent ca319c804e
commit 631fe44c6b
6 files changed
+4 -9

No files matched your search

+4
View File
@@ -327,6 +327,10 @@ func DownloadTryCompression(downloader aptly.Downloader, url string, expectedChe
}
if !foundChecksum {
if !ignoreMismatch {
continue
}
file, err = DownloadTemp(downloader, tryURL)
}