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 80a5bc9 commit 8eb8012Copy full SHA for 8eb8012
net.coffee
@@ -1142,7 +1142,7 @@ class TcpConnection extends Connection
1142
auth_salt = new Buffer(authentication.s, 'base64')
1143
auth_i = parseInt(authentication.i)
1144
1145
- if not auth_r.substr(0, r_string) == r_string
+ if not (auth_r.substr(0, r_string.length) == r_string)
1146
throw new err.ReqlAuthError("Invalid nonce from server")
1147
1148
client_final_message_without_proof = "c=biws,r=" + auth_r
0 commit comments