libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit 558877dba24bea5df72296235aa61ff1ec146c2e
parent 5b59b6ade93b2b1536faa9c634b9d721e3196f97
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri,  5 May 2017 19:33:29 +0200

Fix(Packer): Add a forgotten verification

Diffstat:
Msrc/packer.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/packer.c b/src/packer.c @@ -837,6 +837,9 @@ bool packer_read_archive_header(packer_t *ctx) { bool ret; int cur = 0; + if (ctx->type != PACKER_TYPE_ARCHIVE) + return false; + archive = mpm_read_file_from_fn(ctx->str); if (archive == NULL) return false;