bn/bn_add.c: fix dead code elimination that went bad.

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Andy Polyakov 2015-02-09 15:54:58 +01:00
parent 9c7a780bbe
commit c2cfc956e5

View file

@ -222,7 +222,7 @@ int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
break;
}
}
memcpy(rp, ap, sizeof(*rp) * (max - i));
memcpy(rp, ap, sizeof(*rp) * dif);
r->top = max;
r->neg = 0;