Skip to content

Commit bfe3756

Browse files
committed
Skip sni test if hostname wasn't specified
1 parent bd4100b commit bfe3756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unittest/libmariadb/tls.c.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,9 +836,9 @@ static int test_conc795(MYSQL *my __attribute__((unused)))
836836

837837
set_verify(mysql, 0);
838838

839-
if (ma_is_ip_address(hostname))
839+
if (!hostname || ma_is_ip_address(hostname))
840840
{
841-
diag("SNI test skipped (hostname = ip address");
841+
diag("SNI test skipped (hostname = ip address or empty)");
842842
ret = SKIP;
843843
goto end;
844844
}

0 commit comments

Comments
 (0)