Skip to content

Commit

Permalink
Merge pull request #2198 from pi-hole/fix/teleporter_zip_verify
Browse files Browse the repository at this point in the history
Modify teleporter zip verification
  • Loading branch information
DL6ER authored Feb 19, 2025
2 parents f68a6bb + 926c2a4 commit 3a7a992
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/zip/teleporter.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,8 @@ const char *generate_teleporter_zip(mz_zip_archive *zip, char filename[128], voi
mz_zip_error pErr;
if(!mz_zip_validate_mem_archive(*ptr, *size, MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG, &pErr))
{
log_err("Failed to validate generated Teleporter ZIP archive: %s",
mz_zip_get_error_string(pErr));
return "Failed to validate generated Teleporter ZIP archive!";
log_warn("Failed to validate generated Teleporter ZIP archive: %s",
mz_zip_get_error_string(pErr));
}

// Generate filename for ZIP archive (it has both the hostname and the
Expand Down

0 comments on commit 3a7a992

Please sign in to comment.