comparison common/strhelp.c @ 183:4def8b263dd3

Fix str_base64_decode
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 25 Mar 2014 17:38:06 +0000
parents bf4bfd8843bd
children c596568fa45b
comparison
equal deleted inserted replaced
182:6c3a089d3265 183:4def8b263dd3
173 *dst = xmalloc(*dst_size); 173 *dst = xmalloc(*dst_size);
174 memset (*dst, 0, *dst_size); 174 memset (*dst, 0, *dst_size);
175 175
176 ret = base64_decode((unsigned char *)*dst, dst_size, 176 ret = base64_decode((unsigned char *)*dst, dst_size,
177 (unsigned char *)src, src_size); 177 (unsigned char *)src, src_size);
178 if (!ret) { 178 if (ret) {
179 free (*dst); 179 free (*dst);
180 *dst = NULL; 180 *dst = NULL;
181 dst_size = 0; 181 *dst_size = 0;
182 } 182 }
183 return ret; 183 return ret;
184 } 184 }

http://wald.intevation.org/projects/trustbridge/