summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/c_rehash.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 2f735d68c9..343cdc1e75 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -222,6 +222,7 @@ sub link_hash {
"-fingerprint", "-noout",
"-in", $fname);
chomp $hash;
+ $hash =~ s/^.*=// if !$is_cert;
chomp $fprint;
return if !$hash;
$fprint =~ s/^.*=//;