Skip to content

Commit ec4ad3d

Browse files
committed
CDRIVER-640 mongoc_client_get_database_names err handling in 1.1.x
1 parent 8ef31e5 commit ec4ad3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ mongoc_client_get_database_names (mongoc_client_t *client,
13211321
}
13221322
}
13231323

1324-
if (!ret) {
1324+
if (!ret && !mongoc_cursor_error (cursor, error)) {
13251325
ret = bson_malloc0 (sizeof (void*));
13261326
}
13271327

0 commit comments

Comments
 (0)