Skip to content
Browse files

SERVER-4291: Return code of recv unchecked

Signed-off-by: Tad Marshall <tad@10gen.com>
  • Loading branch information...
1 parent f45435a commit 4bb6e76b20a3f8fd49fb4677b189b41088f3a962 Brandon Diamond committed with tadmarshall
Showing with 4 additions and 3 deletions.
  1. +4 −3 client/dbclientcursor.cpp
View
7 client/dbclientcursor.cpp
@@ -138,9 +138,10 @@ namespace mongo {
assert( !haveLimit );
auto_ptr<Message> response(new Message());
assert( _client );
- _client->recv(*response);
- b.m = response;
- dataReceived();
+ if ( _client->recv(*response) ) {
+ b.m = response;
+ dataReceived();
+ }
}
void DBClientCursor::dataReceived( bool& retry, string& host ) {

0 comments on commit 4bb6e76

Please sign in to comment.
Something went wrong with that request. Please try again.