]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fix fb infer complain
authorDmitry Belyavskiy <beldmit@gmail.com>
Sat, 21 Sep 2019 12:59:45 +0000 (15:59 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 21 Sep 2019 12:59:45 +0000 (15:59 +0300)
gostsum.c

index d9860e4b61581888f799485554f13a2b66c7d334..b61215c9f08cb8ab05feb7ff9e57d653967a5c1e 100644 (file)
--- a/gostsum.c
+++ b/gostsum.c
@@ -163,6 +163,7 @@ int hash_file(gost_hash_ctx * ctx, char *filename, char *sum, int mode)
     }
     if (!hash_stream(ctx, fd, sum)) {
         perror(filename);
+        close(fd);
         return 0;
     }
     close(fd);