mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
Fix incorrect memory allocation assignment
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
22b1338390
commit
73553e60ec
@ -180,7 +180,7 @@ static int decode_signature(const char *base64_data,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
/* alloc our memory and repeat the call to decode */
|
/* alloc our memory and repeat the call to decode */
|
||||||
MALLOC(data, (size_t)destlen, goto error);
|
MALLOC(*data, (size_t)destlen, goto error);
|
||||||
ret = base64_decode(*data, &destlen, usline, len);
|
ret = base64_decode(*data, &destlen, usline, len);
|
||||||
if(ret != 0) {
|
if(ret != 0) {
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user