diff options
Diffstat (limited to 'freebsd/crypto/openssl/crypto/bio/bss_mem.c')
-rw-r--r-- | freebsd/crypto/openssl/crypto/bio/bss_mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/crypto/openssl/crypto/bio/bss_mem.c b/freebsd/crypto/openssl/crypto/bio/bss_mem.c index 4326e117..03404a5b 100644 --- a/freebsd/crypto/openssl/crypto/bio/bss_mem.c +++ b/freebsd/crypto/openssl/crypto/bio/bss_mem.c @@ -190,6 +190,8 @@ static int mem_write(BIO *b, const char *in, int inl) } BIO_clear_retry_flags(b); + if (inl == 0) + return 0; blen = bm->length; if (BUF_MEM_grow_clean(bm, blen + inl) != (blen + inl)) goto end; |