coaps: x509 - dtls reuse length variable

This commit is contained in:
nick 2024-12-12 17:38:08 +02:00
parent 19e0c11b69
commit dc316ec10d

View File

@ -123,7 +123,7 @@ public class TbCoapDtlsSettings {
if (maxFragmentLength != null) {
Length length = fromLength(maxFragmentLength);
if (length != null) {
configBuilder.set(DTLS_MAX_FRAGMENT_LENGTH, fromLength(maxFragmentLength));
configBuilder.set(DTLS_MAX_FRAGMENT_LENGTH, length);
}
}
configBuilder.setAdvancedCertificateVerifier(