Skip to content

Commit

Permalink
Do not fail hard on inability to validate ZIP file, just log a warning
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Feb 19, 2025
1 parent 3b78e07 commit 926c2a4
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 926c2a4

Please sign in to comment.