From 79479f024055051c6b7e7eea8771e81c6bb7f65b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Sat, 15 May 1999 12:22:19 +0000 Subject: [PATCH] Bugfix (set shutdown only when we should). Submitted by: Oleg Girko --- crypto/bio/bss_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1