diff options
Diffstat (limited to 'crypto/openssl/crypto/bio/bf_buff.c')
-rw-r--r-- | crypto/openssl/crypto/bio/bf_buff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/openssl/crypto/bio/bf_buff.c b/crypto/openssl/crypto/bio/bf_buff.c index c90238b..1cecd70 100644 --- a/crypto/openssl/crypto/bio/bf_buff.c +++ b/crypto/openssl/crypto/bio/bf_buff.c @@ -60,7 +60,6 @@ #include <errno.h> #include "cryptlib.h" #include <openssl/bio.h> -#include <openssl/evp.h> static int buffer_write(BIO *h, const char *buf,int num); static int buffer_read(BIO *h, char *buf, int size); @@ -483,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); |