comparison libtommath/bn_mp_init_copy.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 8bba51a55704
children f52919ffd3b1
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
21 int res; 21 int res;
22 22
23 if ((res = mp_init_size (a, b->used)) != MP_OKAY) { 23 if ((res = mp_init_size (a, b->used)) != MP_OKAY) {
24 return res; 24 return res;
25 } 25 }
26 return mp_copy (b, a); 26
27 if((res = mp_copy (b, a)) != MP_OKAY) {
28 mp_clear(a);
29 }
30
31 return res;
27 } 32 }
28 #endif 33 #endif
29 34
30 /* $Source$ */ 35 /* ref: $Format:%D$ */
31 /* $Revision$ */ 36 /* git commit: $Format:%H$ */
32 /* $Date$ */ 37 /* commit time: $Format:%ai$ */