fix: add missing package verification to download operation

This commit is contained in:
ngn
2024-07-17 22:56:28 +03:00
parent 7532c0d682
commit 17d572add0
2 changed files with 4 additions and 1 deletions

View File

@ -78,6 +78,9 @@ bool lm_ctx_download(lm_ctx_t *ctx, lm_pkg_t *pkg, lm_ctx_download_callback_t ca
if(!lm_mptp_recvfile(sock, pkg->paths.signature, __lm_ctx_download_callback, &cbdata))
goto end;
if(!lm_package_verify(pkg))
goto end;
ret = true;
end:
lm_mptp_close(sock);