Skip to content

Commit 2c7271a

Browse files
committed
comment changes
1 parent 1d36666 commit 2c7271a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/IOBuffer.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,10 @@ private boolean validateServerName(String nameInCert) throws CertificateExceptio
14261426
return false;
14271427
}
14281428

1429-
// We do not allow * plus a top-level domain.
1430-
// This if statement counts the number of .s in the nameInCert. If it's 1 or less, then reject it.
1431-
// This also catches cases where nameInCert is just *
1429+
/* We do not allow * plus a top-level domain.
1430+
* This if statement counts the number of .s in the nameInCert. If it's 1 or less, then reject it.
1431+
* This also catches cases where nameInCert is just *
1432+
*/
14321433
if ((nameInCert.length() - nameInCert.replace(".", "").length()) <= 1) {
14331434
return false;
14341435
}
@@ -1438,9 +1439,10 @@ private boolean validateServerName(String nameInCert) throws CertificateExceptio
14381439
String certAfterWildcard;
14391440

14401441
if (firstPeriodAfterWildcard < 0) {
1441-
// if we get something like peter.database.c*, then make certAfterWildcard empty so that we accept
1442-
// anything after *.
1443-
// both startsWith("") and endswith("") will always resolve to "true".
1442+
/* if we get something like peter.database.c*, then make certAfterWildcard empty so that we accept
1443+
* anything after *.
1444+
* both startsWith("") and endswith("") will always resolve to "true".
1445+
*/
14441446
certAfterWildcard = "";
14451447
} else {
14461448
certAfterWildcard = nameInCert.substring(firstPeriodAfterWildcard);

0 commit comments

Comments
 (0)