1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-03 22:48:03 +02:00

common: Fix recent commit 55656208.

* common/membuf.c (get_membuf_shrink): Fix use of LEN.
--

Oops, what a stupid bug.
This commit is contained in:
Werner Koch 2014-03-06 15:28:42 +01:00
parent 5ed8e9335f
commit 191e32026f

View File

@ -181,12 +181,12 @@ get_membuf_shrink (membuf_t *mb, size_t *len)
if (!len)
len = &dummylen;
p = get_membuf (mb, &len);
p = get_membuf (mb, len);
if (!p)
return NULL;
if (len)
if (*len)
{
pp = xtryrealloc (p, len);
pp = xtryrealloc (p, *len);
if (pp)
p = pp;
}