diff options
author | logan <> | 2014-06-29 18:22:10 +0000 |
---|---|---|
committer | logan <> | 2014-06-29 18:22:10 +0000 |
commit | 01d83d19252964628040826721dc2e3ce68ddd42 (patch) | |
tree | b728da3b6801e6d9f559ed259fe0f111361edfc1 | |
parent | 8e4ed6885a60cc3119cf11912d22dc7d1ab4f6f5 (diff) | |
download | openbsd-01d83d19252964628040826721dc2e3ce68ddd42.tar.gz openbsd-01d83d19252964628040826721dc2e3ce68ddd42.tar.bz2 openbsd-01d83d19252964628040826721dc2e3ce68ddd42.zip |
Fix file descriptor leak
(Thanks to Brent Cook)
OK from jsing@
-rw-r--r-- | src/lib/libssl/src/apps/enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/src/apps/enc.c b/src/lib/libssl/src/apps/enc.c index 458f47e441..4aa2c6a0ed 100644 --- a/src/lib/libssl/src/apps/enc.c +++ b/src/lib/libssl/src/apps/enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: enc.c,v 1.35 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: enc.c,v 1.36 2014/06/29 18:22:10 logan Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -230,6 +230,7 @@ enc_main(int argc, char **argv) | |||
230 | if (!fgets(buf, sizeof buf, infile)) { | 230 | if (!fgets(buf, sizeof buf, infile)) { |
231 | BIO_printf(bio_err, "unable to read key from '%s'\n", | 231 | BIO_printf(bio_err, "unable to read key from '%s'\n", |
232 | file); | 232 | file); |
233 | fclose(infile); | ||
233 | goto bad; | 234 | goto bad; |
234 | } | 235 | } |
235 | fclose(infile); | 236 | fclose(infile); |