diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:04:27 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-04 16:04:27 +0200 |
commit | c21869fb07ea02ffd46e817caeb47d85a85ee8ef (patch) | |
tree | ce342f6df9e4cef14e68e65c8894debe8e03197a /crypto/bio/bss_file.c | |
parent | Prevent aliasing warning (diff) | |
download | openssl-c21869fb07ea02ffd46e817caeb47d85a85ee8ef.tar.xz openssl-c21869fb07ea02ffd46e817caeb47d85a85ee8ef.zip |
Prevent ignored return value warning
Diffstat (limited to 'crypto/bio/bss_file.c')
-rw-r--r-- | crypto/bio/bss_file.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crypto/bio/bss_file.c b/crypto/bio/bss_file.c index 480208a315..a85ac209f0 100644 --- a/crypto/bio/bss_file.c +++ b/crypto/bio/bss_file.c @@ -403,11 +403,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); } |