Commit 72c07065 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

GnuTLS: fix server assertion failure in client certificate verification

parent 48130cfa
......@@ -355,8 +355,8 @@ gnutls_HandshakeAndValidate( tls_session_t *session )
goto error;
}
assert( p_sys->psz_hostname != NULL );
if ( !gnutls_x509_crt_check_hostname( cert, p_sys->psz_hostname ) )
if( p_sys->psz_hostname != NULL
&& !gnutls_x509_crt_check_hostname( cert, p_sys->psz_hostname ) )
{
msg_Err( session, "Certificate does not match \"%s\"",
p_sys->psz_hostname );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment