diff options
author | Werner Koch <[email protected]> | 2010-06-17 15:44:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-06-17 15:44:44 +0000 |
commit | 006fd75aea5cc766bc223e435e5a07b543d658d3 (patch) | |
tree | 2f4365e73bf0a8b5272426fcf1fde9b75be4002e /common/membuf.c | |
parent | Add makefiles to build a w32 development package. (diff) | |
download | gnupg-006fd75aea5cc766bc223e435e5a07b543d658d3.tar.gz gnupg-006fd75aea5cc766bc223e435e5a07b543d658d3.zip |
Avoid using the protect-tool to import pkcs#12.
Diffstat (limited to 'common/membuf.c')
-rw-r--r-- | common/membuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/membuf.c b/common/membuf.c index dc8f6f692..f9f82d357 100644 --- a/common/membuf.c +++ b/common/membuf.c @@ -59,7 +59,7 @@ init_membuf_secure (membuf_t *mb, int initiallen) void put_membuf (membuf_t *mb, const void *buf, size_t len) { - if (mb->out_of_core) + if (mb->out_of_core || !len) return; if (mb->len + len >= mb->size) |