projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updates from fips2 branch: close streams in test utilities, use cofactor ECDH
[oweals/openssl.git]
/
fips
/
rand
/
fips_drbgvs.c
diff --git
a/fips/rand/fips_drbgvs.c
b/fips/rand/fips_drbgvs.c
index bcdfa6dac3533a6353527a13aea10465378c84ff..9aae88c3e164b40360b82a15505d35b2abfc89dd 100644
(file)
--- a/
fips/rand/fips_drbgvs.c
+++ b/
fips/rand/fips_drbgvs.c
@@
-176,7
+176,7
@@
int fips_drbgvs_main(int argc,char **argv)
int main(int argc,char **argv)
#endif
{
- FILE *in
, *out
;
+ FILE *in
= NULL, *out = NULL
;
DRBG_CTX *dctx = NULL;
TEST_ENT t;
int r, nid = 0;
@@
-406,6
+406,10
@@
int main(int argc,char **argv)
}
}
+ if (in && in != stdin)
+ fclose(in);
+ if (out && out != stdout)
+ fclose(out);
return 0;
}