Skip to content

Commit 6cf53e8

Browse files
authored
Merge pull request libgit2#4424 from tiennou/fix/incorrect-winhttp-cert-payload
Use the same cert checking payload in WinHTTP
2 parents a9b6667 + 38eaa7a commit 6cf53e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/winhttp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ static int certificate_check(winhttp_stream *s, int valid)
269269
cert.parent.cert_type = GIT_CERT_X509;
270270
cert.data = cert_ctx->pbCertEncoded;
271271
cert.len = cert_ctx->cbCertEncoded;
272-
error = t->owner->certificate_check_cb((git_cert *) &cert, valid, t->connection_data.host, t->owner->cred_acquire_payload);
272+
error = t->owner->certificate_check_cb((git_cert *) &cert, valid, t->connection_data.host, t->owner->message_cb_payload);
273273
CertFreeCertificateContext(cert_ctx);
274274

275275
if (error < 0 && !giterr_last())

0 commit comments

Comments
 (0)