We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ed1f8 commit 44906b0Copy full SHA for 44906b0
src/crypto/crypto_keys.cc
@@ -126,7 +126,7 @@ MaybeLocal<Value> WritePublicKey(
126
const EVPKeyPointer::PublicKeyEncodingConfig& config) {
127
if (!pkey) return {};
128
auto res = pkey.writePublicKey(config);
129
- if (res) return ToV8Value(env, std::move(res.value), config);
+ if (res) return ToV8Value(env, res.value, config);
130
131
ThrowCryptoError(
132
env, res.openssl_error.value_or(0), "Failed to encode public key");
0 commit comments