# HG changeset patch # User Alain Mazy # Date 1787557918 -7200 # Node ID a3923ae96abdc783cf2348cd81b887572faf6f51 # Parent 843c4e99e96fe1eed495edd9a279c874dd9107b4 close rejected association diff -r 843c4e99e96f -r a3923ae96abd NEWS --- a/NEWS Thu Aug 20 17:24:07 2026 +0200 +++ b/NEWS Mon Aug 24 09:51:58 2026 +0200 @@ -6,6 +6,11 @@ * Added OrthancPluginGetInstanceCalledAet() and OrthancPluginGetInstanceRemoteIp() +Maintenance +----------- + +* Fixed a TCP socket leak when a DICOM association is received with an invalid calling AET. + Version 1.13.0 (2026-08-15) =========================== diff -r 843c4e99e96f -r a3923ae96abd OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp --- a/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Thu Aug 20 17:24:07 2026 +0200 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp Mon Aug 24 09:51:58 2026 +0200 @@ -332,6 +332,15 @@ { LOG(ERROR) << "Association Received from an invalid AET (sanitized: " << Toolbox::NormalizeAet(remoteAet) << ")" << " on IP " << remoteIp << ", rejecting the association"; + + T_ASC_RejectParameters rej = + { + ASC_RESULT_REJECTEDPERMANENT, + ASC_SOURCE_SERVICEUSER, + ASC_REASON_SU_CALLINGAETITLENOTRECOGNIZED + }; + ASC_rejectAssociation(assoc, &rej); + AssociationCleanup(assoc); return NULL; }