projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove deleted function from header file, update mkfiles.pl
[openssl.git]
/
crypto
/
bio
/
bf_buff.c
diff --git
a/crypto/bio/bf_buff.c
b/crypto/bio/bf_buff.c
index 6ccda06596c4711e875532caf7a269d9e194257f..c1fd75aaad80f071c0f2fce330c08d95b6bd4ddd 100644
(file)
--- a/
crypto/bio/bf_buff.c
+++ b/
crypto/bio/bf_buff.c
@@
-482,7
+482,7
@@
static int buffer_gets(BIO *b, char *buf, int size)
size-=i;
ctx->ibuf_len-=i;
ctx->ibuf_off+=i;
- if (
(flag) || (i == size)
)
+ if (
flag || size == 0
)
{
*buf='\0';
return(num);
@@
-494,6
+494,7
@@
static int buffer_gets(BIO *b, char *buf, int size)
if (i <= 0)
{
BIO_copy_next_retry(b);
+ *buf='\0';
if (i < 0) return((num > 0)?num:i);
if (i == 0) return(num);
}