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 2ee31aa commit efb7aefCopy full SHA for efb7aef
1 file changed
src/node_crypto.cc
@@ -2373,10 +2373,9 @@ int SSLWrap<Base>::TLSExtStatusCallback(SSL* s, void* arg) {
2373
if (resp == nullptr) {
2374
arg = Null(env->isolate());
2375
} else {
2376
- arg = Buffer::Copy(
2377
- env,
2378
- reinterpret_cast<char*>(const_cast<unsigned char*>(resp)),
2379
- len).ToLocalChecked();
+ arg =
+ Buffer::Copy(env, reinterpret_cast<const char*>(resp), len)
+ .ToLocalChecked();
2380
}
2381
2382
w->MakeCallback(env->onocspresponse_string(), 1, &arg);
0 commit comments