From 84cf0c52802906cc4d0491f55ad449bdc9920823 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 31 Aug 2011 16:11:00 -0700 Subject: [PATCH] crypto: set data before sending to thread pool fixes test-crypto --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index c36c25f9e5..e790c80868 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3878,8 +3878,8 @@ PBKDF2(const Arguments& args) { request->callback = Persistent::New(callback); uv_work_t* req = new uv_work_t(); - uv_queue_work(uv_default_loop(), req, EIO_PBKDF2, EIO_PBKDF2After); req->data = request; + uv_queue_work(uv_default_loop(), req, EIO_PBKDF2, EIO_PBKDF2After); return Undefined(); }