Skip to content

Commit 67d406f

Browse files
committed
fix comparision
1 parent 01c1db4 commit 67d406f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ext-tls-server.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ static int sni_callback( void *p_info, mbedtls_ssl_context *ssl, const unsigned
215215

216216
cur = (struct sni_entry *) p_info;
217217
while( cur != NULL ) {
218-
if( match_pattern( cur->name, (const char*) name ) == 0 ) {
219-
218+
if( match_pattern( cur->name, (const char*) name ) ) {
220219
// The client does not need to be authenticated
221220
mbedtls_ssl_set_hs_authmode( ssl, MBEDTLS_SSL_VERIFY_NONE );
222221

0 commit comments

Comments
 (0)