diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-12-08 15:14:38 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-12-08 15:14:38 +0000 |
commit | 7c0d30038f19ce927ac121bd2114e41b8a17ed8e (patch) | |
tree | 9fd1fdbfb02b89a474585d964066ed7b30743f09 /fips/dh/fips_dhvs.c | |
parent | 81fc8cd029e2915b1d3d7dfaaaf4d246daa3a954 (diff) |
Close file streams in FIPS algorithm test utilities.
Diffstat (limited to 'fips/dh/fips_dhvs.c')
-rw-r--r-- | fips/dh/fips_dhvs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fips/dh/fips_dhvs.c b/fips/dh/fips_dhvs.c index 3ba1977862..0fb52f79a4 100644 --- a/fips/dh/fips_dhvs.c +++ b/fips/dh/fips_dhvs.c @@ -279,6 +279,10 @@ int main(int argc, char **argv) rhash, rhashlen); } } + if (in && in != stdin) + fclose(in); + if (out && out != stdout) + fclose(out); return 0; parse_error: fprintf(stderr, "Error Parsing request file\n"); |