projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
size_t for buffer functions.
[openssl.git]
/
crypto
/
bio
/
bss_mem.c
diff --git
a/crypto/bio/bss_mem.c
b/crypto/bio/bss_mem.c
index d190765dc2010e2d46a2469c984efa7ceeb0d0c4..56e0d2e3232f12c1246accd00a87d1f72c754b5b 100644
(file)
--- a/
crypto/bio/bss_mem.c
+++ b/
crypto/bio/bss_mem.c
@@
-187,7
+187,7
@@
static int mem_write(BIO *b, const char *in, int inl)
BIO_clear_retry_flags(b);
blen = bm->length;
- if (BUF_MEM_grow_clean(bm, blen + inl)
!= (blen + inl)
)
+ if (BUF_MEM_grow_clean(bm, blen + inl)
== 0
)
goto end;
memcpy(&(bm->data[blen]), in, inl);
ret = inl;