projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff095a8
)
Prevent ignored return value warning
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 4 Oct 2009 14:04:36 +0000
(14:04 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 4 Oct 2009 14:04:36 +0000
(14:04 +0000)
crypto/bio/bss_file.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bss_file.c
b/crypto/bio/bss_file.c
index 9ad46fa081dbedb40c7eba675eb9d53797e958e1..62c10731d4a6a8097e00526dba5ae43e58ba5b16 100644
(file)
--- 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);
}