Change check_hash to return a result indicator
authorFlorian Weimer <fw@deneb.enyo.de>
Thu, 22 May 2008 14:05:27 +0000 (22 16:05 +0200)
committerFlorian Weimer <fw@deneb.enyo.de>
Thu, 22 May 2008 14:05:27 +0000 (22 16:05 +0200)
dowkd.in

index af7f975..9b5f79b 100644 (file)
--- a/dowkd.in
+++ b/dowkd.in
@@ -176,7 +176,9 @@ sub check_hash ($$;$) {
        ++$keys_vulnerable;
        $descr = $descr ? " ($descr)" : '';
        print "$name: weak key$descr\n";
+       return 1;
     }
+    return 0;
 }
 
 sub ssh_fprint_file ($) {