diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-15 14:22:19 +0200 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-15 14:22:19 +0200 |
commit | 79479f024055051c6b7e7eea8771e81c6bb7f65b (patch) | |
tree | 609e7634836302b35397a116ee3d18769481c893 /crypto/bio | |
parent | Update. (diff) | |
download | openssl-79479f024055051c6b7e7eea8771e81c6bb7f65b.tar.xz openssl-79479f024055051c6b7e7eea8771e81c6bb7f65b.zip |
Bugfix (set shutdown only when we should).
Submitted by: Oleg Girko
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 323286b09f..232e63669c 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -200,7 +200,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, char *ptr) break; case BIO_C_SET_FILE_PTR: file_free(b); - b->shutdown=(int)num; + b->shutdown=(int)num&BIO_CLOSE; b->ptr=(char *)ptr; b->init=1; #if defined(MSDOS) || defined(WINDOWS) |