From b15c6ec55c789cb28b6b6623e88b3a9dda066cfd Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Wed, 17 Jan 2018 23:11:04 -0600 Subject: [PATCH] Fixed hash non-reset & verification bug. --- fluxion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fluxion b/fluxion index af2cea5..eabed45 100755 --- a/fluxion +++ b/fluxion @@ -1308,7 +1308,7 @@ fluxion_hash_set_path() { return ;; "$FLUXIONHashSourceRescanOption") - fluxion_hash_set_path "$hashPath" + fluxion_hash_set_path "$@" return $? ;; "$FLUXIONGeneralBackOption") @@ -1345,9 +1345,10 @@ fluxion_hash_get_path() { if [ ${#@} -lt 2 ]; then return 1; fi while true; do + fluxion_hash_unset_path if ! fluxion_hash_set_path "$@"; then return $?; fi - if fluxion_hash_verify "$FluxionHashPath" "${@:1}"; then + if fluxion_hash_verify "$FluxionHashPath" "$2" "$3"; then break; fi done