Permalink
Browse files

SERVER-5594 memory corruption in sharding/auth1.js V8 builder

Signed-off-by: Eric Milkie <milkie@10gen.com>
  • Loading branch information...
1 parent 6de83dd commit 97d9c1b81567b76b8a1b111a20024386d39343cd @renctan renctan committed with milkie Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 client/dbclient_rs.cpp
@@ -550,7 +550,7 @@ namespace mongo {
errorOccured = true;
}
- if ( errorOccured ) {
+ if ( errorOccured && nodesOffset >= 0 ) {
scoped_lock lk( _lock );
_nodes[nodesOffset].ok = false;
}

0 comments on commit 97d9c1b

Please sign in to comment.