Skip to content

Commit 4c357bd

Browse files
committed
Don't manually set TLS errors
1 parent ab9bae8 commit 4c357bd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libmongoc/src/mongoc/mongoc-crypt.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,7 @@ _state_need_kms (_state_machine_t *state_machine, bson_error_t *error)
590590
/* Always safe to retry stream creation. */
591591
continue;
592592
} else {
593-
bson_set_error (error,
594-
MONGOC_ERROR_STREAM,
595-
MONGOC_ERROR_STREAM_CONNECT,
596-
"Failed to connect to KMS endpoint: %s",
597-
endpoint);
593+
/* TLS errors are set in _get_stream */
598594
goto fail;
599595
}
600596
}

0 commit comments

Comments
 (0)