Skip to content

Commit 75f4a9d

Browse files
committed
fix a warning and some screwy error reporting
1 parent f6c7c1a commit 75f4a9d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/example-scram.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ main (int argc,
3434
authuristr = "mongodb://user,=:[email protected]/test?authMechanism=MONGODB-CR";
3535
} else {
3636
printf("%s - [implicit|scram|cr]\n", argv[0]);
37+
return 1;
3738
}
3839

3940
mongoc_init ();

src/mongoc/mongoc-cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ _mongoc_cluster_preselect (mongoc_cluster_t *cluster, /* IN */
877877
while (!(node = _mongoc_cluster_select (cluster, &rpc, 1, 0, write_concern,
878878
read_prefs, &scoped_error))) {
879879
if ((retry_count++ == MAX_RETRY_COUNT) ||
880-
!_mongoc_cluster_reconnect (cluster, error)) {
880+
!_mongoc_cluster_reconnect (cluster, &scoped_error)) {
881881
break;
882882
}
883883
}

0 commit comments

Comments
 (0)