summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-04 14:04:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-04 14:04:14 +0000
commite6714faffbdfc551ab8b2a50954519dff4bc7b15 (patch)
treeb8414d8c5038675f35118acc421619fd3497c8fd /crypto/bio
parentaf8f2bb1741b1033a9866f450d5f60c82eef93ce (diff)
Prevent ignored return value warning
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bss_file.c11
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);
}