From f79e5bbacaef85125bc56448486ded92828875e8 Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Sat, 2 Nov 2019 10:34:00 -0500 Subject: [PATCH] fix bug in f5_ip_oldstyle() printf format string --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 36850a2..0993733 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1367,7 +1367,7 @@ f5_ip_oldstyle() { local a b c d tmp="${1/%.*}" # until first dot - tmp="$(printf "%x8" "$tmp")" # convert the whole thing to hex, now back to ip (reversed notation: + tmp="$(printf "%08x" "$tmp")" # convert the whole thing to hex, now back to ip (reversed notation: tmp="$(f5_hex2ip $tmp)" # transform to ip with reversed notation IFS="." read -r a b c d <<< "$tmp" # reverse it echo $d.$c.$b.$a