Mercurial > trustbridge
changeset 183:4def8b263dd3
Fix str_base64_decode
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 17:38:06 +0000 |
parents | 6c3a089d3265 |
children | 1f44aae4528e |
files | common/strhelp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/common/strhelp.c Tue Mar 25 17:17:41 2014 +0000 +++ b/common/strhelp.c Tue Mar 25 17:38:06 2014 +0000 @@ -175,10 +175,10 @@ ret = base64_decode((unsigned char *)*dst, dst_size, (unsigned char *)src, src_size); - if (!ret) { + if (ret) { free (*dst); *dst = NULL; - dst_size = 0; + *dst_size = 0; } return ret; }