Skip to content

Commit 6674213

Browse files
committed
Remove & in acquire cred handle
1 parent 13305b3 commit 6674213

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libmongoc/src/mongoc/mongoc-stream-tls-secure-channel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ mongoc_secure_channel_cred_new(const mongoc_ssl_opt_t *opt)
922922
enabled_protocols |= SP_PROT_TLS1_3_CLIENT;
923923
printf("Enabling TLS 1.3 with Secure Channel \n");
924924
}
925+
925926
cred->cred->pTlsParameters->grbitDisabledProtocols = (DWORD)~enabled_protocols;
926927
#else
927928
cred->cred->grbitEnabledProtocols = SP_PROT_TLS1_1_CLIENT | SP_PROT_TLS1_2_CLIENT;
@@ -1015,7 +1016,7 @@ mongoc_stream_tls_secure_channel_new_with_creds(mongoc_stream_t *base_stream,
10151016
UNISP_NAME, /* security package */
10161017
SECPKG_CRED_OUTBOUND, /* we are preparing outbound connection */
10171018
NULL, /* Optional logon */
1018-
&cred->cred, /* TLS "configuration", "auth data" */
1019+
cred->cred, /* TLS "configuration", "auth data" */
10191020
NULL, /* unused */
10201021
NULL, /* unused */
10211022
&secure_channel->cred_handle->cred_handle, /* credential OUT param */

0 commit comments

Comments
 (0)