diff --git a/src/node_crypto.cc b/src/node_crypto.cc index ac90259e10..f41b2d5a8c 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -580,13 +580,11 @@ Handle SecureContext::SetOptions(const Arguments& args) { SecureContext *sc = ObjectWrap::Unwrap(args.Holder()); - if (args.Length() != 1 || !args[0]->IsUint32()) { + if (args.Length() != 1 || !args[0]->IntegerValue()) { return ThrowException(Exception::TypeError(String::New("Bad parameter"))); } - unsigned int opts = args[0]->Uint32Value(); - - SSL_CTX_set_options(sc->ctx_, opts); + SSL_CTX_set_options(sc->ctx_, args[0]->IntegerValue()); return True(); }