diff --git a/dcmtls/libsrc/tlsscu.cc b/dcmtls/libsrc/tlsscu.cc
index ba7e913c0..86bc625a0 100644
--- a/dcmtls/libsrc/tlsscu.cc
+++ b/dcmtls/libsrc/tlsscu.cc
@@ -107,6 +107,7 @@ OFCondition DcmTLSSCU::initNetwork()
{
if (m_tLayer->addTrustedCertificateDir( (*certDir).c_str(), m_certKeyFileFormat).bad())
DCMNET_WARN("Unable to load certificates from directory '" << *certDir<< "', ignoring");
+ certDir++;
}
/* If authentication of both sides (and not only encryption) is desired,
Thank you for the bug report. I have created a corresponding issue in our issue tracker: https://support.dcmtk.org/redmine/issues/1020.
This seems to be fairly straightforward to fix, but I need to test a fix anyway before committing it.