Index: download_action.cc |
diff --git a/download_action.cc b/download_action.cc |
index 6b277224b59ead8678f026dcfe0e4fabdb6be8d2..608eeb9bb65b51f00445bc6c514ec7b186fa4dbb 100644 |
--- a/download_action.cc |
+++ b/download_action.cc |
@@ -150,6 +150,11 @@ void DownloadAction::TransferComplete(HttpFetcher *fetcher, bool successful) { |
<< " failed. Expected size " << install_plan_.size |
<< " but got size " << bytes_received_; |
code = kActionCodeDownloadSizeMismatchError; |
+ } else if (!install_plan_.is_full_update && |
+ !delta_performer_->VerifyPayload("")) { |
+ LOG(ERROR) << "Download of " << install_plan_.download_url |
+ << " failed due to payload verification error."; |
+ code = kActionCodeDownloadPayloadVerificationError; |
} |
} |