diff --git a/lib/core/wireprotocol/command.js b/lib/core/wireprotocol/command.js index f395b91b27..e6af5dabb9 100644 --- a/lib/core/wireprotocol/command.js +++ b/lib/core/wireprotocol/command.js @@ -162,7 +162,7 @@ function _cryptCommand(server, ns, cmd, options, callback) { return; } - autoEncrypter.decrypt(response.result, (err, decrypted) => { + autoEncrypter.decrypt(response.result, options, (err, decrypted) => { if (err) { callback(err, null); return; @@ -179,7 +179,7 @@ function _cryptCommand(server, ns, cmd, options, callback) { return; } - autoEncrypter.encrypt(ns, cmd, (err, encrypted) => { + autoEncrypter.encrypt(ns, cmd, options, (err, encrypted) => { if (err) { callback(err, null); return;