projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Some cleanups for crypto/bn
[openssl.git]
/
crypto
/
bn
/
bn_add.c
diff --git
a/crypto/bn/bn_add.c
b/crypto/bn/bn_add.c
index a446686c7475bb1069de413a97402d7ad1f64417..0bfc3cc637b17181c387922f99a5252e9adfc203 100644
(file)
--- a/
crypto/bn/bn_add.c
+++ b/
crypto/bn/bn_add.c
@@
-222,7
+222,8
@@
int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
break;
}
}
- memcpy(rp, ap, sizeof(*rp) * dif);
+ if (dif)
+ memcpy(rp, ap, sizeof(*rp) * dif);
r->top = max;
r->neg = 0;