| Index: net/quic/crypto/curve25519_key_exchange.cc
|
| diff --git a/net/quic/crypto/curve25519_key_exchange.cc b/net/quic/crypto/curve25519_key_exchange.cc
|
| index f3d39e76001151853654a87316ea47ff72d3cdb9..26149341af7bcd119c7708b187569dab27e4050b 100644
|
| --- a/net/quic/crypto/curve25519_key_exchange.cc
|
| +++ b/net/quic/crypto/curve25519_key_exchange.cc
|
| @@ -67,10 +67,11 @@ bool Curve25519KeyExchange::CalculateSharedKey(
|
| }
|
|
|
| uint8 result[crypto::curve25519::kBytes];
|
| - crypto::curve25519::ScalarMult(
|
| - private_key_,
|
| - reinterpret_cast<const uint8*>(peer_public_value.data()),
|
| - result);
|
| + if (!crypto::curve25519::ScalarMult(
|
| + private_key_,
|
| + reinterpret_cast<const uint8*>(peer_public_value.data()), result)) {
|
| + return false;
|
| + }
|
| out_result->assign(reinterpret_cast<char*>(result), sizeof(result));
|
|
|
| return true;
|
|
|