summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/bio/bf_buff.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/bio/bf_buff.c')
-rw-r--r--crypto/openssl/crypto/bio/bf_buff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/bio/bf_buff.c b/crypto/openssl/crypto/bio/bf_buff.c
index 1cecd70..c1fd75a 100644
--- a/crypto/openssl/crypto/bio/bf_buff.c
+++ b/crypto/openssl/crypto/bio/bf_buff.c
@@ -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);
}
OpenPOWER on IntegriCloud