Skip to content

Commit b2027e2

Browse files
committed
merge
2 parents 271cf83 + 1095668 commit b2027e2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sql-common/client.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,12 @@ static int ssl_verify_server_cert(Vio *vio, const char* server_hostname, const c
18581858
DBUG_RETURN(1);
18591859
}
18601860

1861+
if (X509_V_OK != SSL_get_verify_result(ssl))
1862+
{
1863+
*errptr= "Failed to verify the server certificate";
1864+
X509_free(server_cert);
1865+
DBUG_RETURN(1);
1866+
}
18611867
/*
18621868
We already know that the certificate exchanged was valid; the SSL library
18631869
handled that. Now we need to verify that the contents of the certificate

0 commit comments

Comments
 (0)