Update from stable branch.
This commit is contained in:
parent
33ab2e31f3
commit
617298dca3
@ -2471,7 +2471,7 @@ static void readbn(BIGNUM **bn, BIO *bconn)
|
|||||||
int l;
|
int l;
|
||||||
|
|
||||||
l = BIO_gets(bconn, buf, sizeof buf);
|
l = BIO_gets(bconn, buf, sizeof buf);
|
||||||
assert(l >= 0);
|
assert(l > 0);
|
||||||
assert(buf[l-1] == '\n');
|
assert(buf[l-1] == '\n');
|
||||||
buf[l-1] = '\0';
|
buf[l-1] = '\0';
|
||||||
BN_hex2bn(bn, buf);
|
BN_hex2bn(bn, buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user