Merge #468: Remove redundant conditional expression
2e1ccdc Remove redundant conditional expression (Dag Robole) Pull request description: Tree-SHA512: 999ed3d9d805ec48a92a17554097fcd9d62c2fe859346d381d3a7b38b767e45f57df6cd71eb6dddbea343e4e180c844900fed37d88d21f5a851bd044212aff2e
This commit is contained in:
commit
12230f90ed
@ -81,8 +81,6 @@ static int secp256k1_der_read_len(const unsigned char **sigp, const unsigned cha
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
while (lenleft > 0) {
|
while (lenleft > 0) {
|
||||||
if ((ret >> ((sizeof(size_t) - 1) * 8)) != 0) {
|
|
||||||
}
|
|
||||||
ret = (ret << 8) | **sigp;
|
ret = (ret << 8) | **sigp;
|
||||||
if (ret + lenleft > (size_t)(sigend - *sigp)) {
|
if (ret + lenleft > (size_t)(sigend - *sigp)) {
|
||||||
/* Result exceeds the length of the passed array. */
|
/* Result exceeds the length of the passed array. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user