From 17d572add0bb5d9e7d55ec377631de82fa98519d Mon Sep 17 00:00:00 2001 From: ngn Date: Wed, 17 Jul 2024 22:56:28 +0300 Subject: [PATCH] fix: add missing package verification to download operation --- locale/tr/LC_MESSAGES/libmp.po | 2 +- src/ctx/download.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index 5c82a89..29705e3 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-07-17 21:20+0300\n" +"POT-Creation-Date: 2024-07-17 22:06+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/ctx/download.c b/src/ctx/download.c index 3a43c82..d1fa2bc 100644 --- a/src/ctx/download.c +++ b/src/ctx/download.c @@ -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);