diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index ccc741556e..ed6ee6cabb 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -396,7 +396,10 @@ static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) int ret=0; buf[0]='\0'; - fgets(buf,size,(FILE *)bp->ptr); + if (b->flags&BIO_FLAGS_UPLINK) + UP_fgets(buf,size,bp->ptr); + else + fgets(buf,size,(FILE *)bp->ptr); if (buf[0] != '\0') ret=strlen(buf); return(ret);