From b05aeac9502d9f87d8e390ec2ff0c8a534d2cccf Mon Sep 17 00:00:00 2001 From: Gabriele Gristina Date: Sat, 22 Jun 2019 14:25:06 +0200 Subject: [PATCH] restore original return values in modules 2500, 2501 --- src/modules/module_02500.c | 2 +- src/modules/module_02501.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module_02500.c b/src/modules/module_02500.c index 4a4d65ccf..3d70d9e9e 100644 --- a/src/modules/module_02500.c +++ b/src/modules/module_02500.c @@ -378,7 +378,7 @@ int module_hash_binary_parse (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE fp_tmp_t fp_t; // if (fp == NULL) return -1; - if (hc_fopen (&fp_t, hashes->hashfile, "rb") == false) return (PARSER_HASH_FILE); + if (hc_fopen (&fp_t, hashes->hashfile, "rb") == false) return -1; char *in = (char *) hcmalloc (sizeof (hccapx_t)); diff --git a/src/modules/module_02501.c b/src/modules/module_02501.c index feda461ef..5b8784bb7 100644 --- a/src/modules/module_02501.c +++ b/src/modules/module_02501.c @@ -353,7 +353,7 @@ int module_hash_binary_parse (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE fp_tmp_t fp_t; // if (fp == NULL) return -1; - if (hc_fopen (&fp_t, hashes->hashfile, "rb") == false) return (PARSER_HASH_FILE); + if (hc_fopen (&fp_t, hashes->hashfile, "rb") == false) return -1; char *in = (char *) hcmalloc (sizeof (hccapx_t));