X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gostsum.c;h=b61215c9f08cb8ab05feb7ff9e57d653967a5c1e;hb=HEAD;hp=d9860e4b61581888f799485554f13a2b66c7d334;hpb=7f12baed6f8d2592c07f09375fcb31bc6f00e8ab;p=openssl-gost%2Fengine.git diff --git a/gostsum.c b/gostsum.c index d9860e4..b61215c 100644 --- 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);