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:
ccc265e
)
Undo change from 1.7 to 1.8:
author
Bodo Möller
<bodo@openssl.org>
Fri, 1 Sep 2000 12:29:14 +0000
(12:29 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 1 Sep 2000 12:29:14 +0000
(12:29 +0000)
Returning -1 for an attempt to read from an empty buffer is empty is
not an error that should be signalled via the error queue, it's a
'retry read' condition and is signalled as such.
crypto/bio/bss_mem.c
patch
|
blob
|
history
diff --git
a/crypto/bio/bss_mem.c
b/crypto/bio/bss_mem.c
index d4d956c619ab121fa5e7f770f0cabc2522e2d928..28ff7582bff87a52da73390879543aa57b8ebd1d 100644
(file)
--- a/
crypto/bio/bss_mem.c
+++ b/
crypto/bio/bss_mem.c
@@
-163,11
+163,9
@@
static int mem_read(BIO *b, char *out, int outl)
}
} else if (bm->length == 0)
{
- if (b->num != 0)
+ ret = b->num;
+ if (ret != 0)
BIO_set_retry_read(b);
- ret= b->num;
- if(ret < 0)
- BIOerr(BIO_F_MEM_READ,BIO_R_EOF_ON_MEMORY_BIO);
}
return(ret);
}