From: Bodo Möller Date: Sat, 15 May 1999 12:22:19 +0000 (+0000) Subject: Bugfix (set shutdown only when we should). X-Git-Tag: OpenSSL_0_9_3beta1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79479f024055051c6b7e7eea8771e81c6bb7f65b;p=openssl Bugfix (set shutdown only when we should). Submitted by: Oleg Girko --- 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)