From: Dr. Stephen Henson Date: Sun, 4 Oct 2009 14:04:36 +0000 (+0000) Subject: Prevent ignored return value warning X-Git-Tag: OpenSSL_0_9_8m-beta1~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91ca332058992efef6137d22808176b925c7cfc7;p=oweals%2Fopenssl.git Prevent ignored return value warning --- diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 9ad46fa081..62c10731d4 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -404,11 +404,18 @@ static int MS_CALLBACK file_gets(BIO *bp, char *buf, int size) buf[0]='\0'; if (bp->flags&BIO_FLAGS_UPLINK) - UP_fgets(buf,size,bp->ptr); + { + if (!UP_fgets(buf,size,bp->ptr)) + goto err; + } else - fgets(buf,size,(FILE *)bp->ptr); + { + if (!fgets(buf,size,(FILE *)bp->ptr)) + goto err; + } if (buf[0] != '\0') ret=strlen(buf); + err: return(ret); }