Skip to content

Commit 4ba5ffa

Browse files
committed
fix override of crypt_shared path
Always try to set the `cryptSharedLib`path override, regardless of whether `extraOptions` is set in the test.
1 parent 017cf32 commit 4ba5ffa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libmongoc/tests/unified/entity-map.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,10 +1413,13 @@ _parse_and_set_auto_encryption_opts (mongoc_client_t *client, bson_t *opts, bson
14131413

14141414
if (extra_options) {
14151415
extra = bson_copy (extra_options);
1416-
maybe_set_extra_crypt_shared (extra);
1417-
mongoc_auto_encryption_opts_set_extra (auto_encryption_opts, extra);
1416+
} else {
1417+
extra = bson_new ();
14181418
}
14191419

1420+
maybe_set_extra_crypt_shared (extra);
1421+
mongoc_auto_encryption_opts_set_extra (auto_encryption_opts, extra);
1422+
14201423
if (!mongoc_client_enable_auto_encryption (client, auto_encryption_opts, error)) {
14211424
goto done;
14221425
}

0 commit comments

Comments
 (0)