From 642ef5b08ff3bf23f8fe7a41808fb37550ef1b06 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 7 Sep 2019 19:07:17 +0200 Subject: [PATCH] fix mp_to_radix remove an assignment which could overwrite the one with MP_VAL caused by a conflict between 2 recent commits - refactor with goto - return error if output-buffer is too small --- bn_mp_to_radix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bn_mp_to_radix.c b/bn_mp_to_radix.c index 6b03ee7..ca9c0fa 100644 --- a/bn_mp_to_radix.c +++ b/bn_mp_to_radix.c @@ -66,8 +66,6 @@ mp_err mp_to_radix(const mp_int *a, char *str, size_t maxlen, int radix) /* append a NULL so the string is properly terminated */ *str = '\0'; - err = MP_OKAY; - LBL_ERR: mp_clear(&t); return err;