changeset 1085:b161593551db

Always allow incoming ECHO requests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Aug 2014 12:16:50 +0200
parents c608407d8dc2
children e56c3ed8d738
files OrthancServer/Internals/CommandDispatcher.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Internals/CommandDispatcher.cpp	Tue Jul 29 13:19:25 2014 +0200
+++ b/OrthancServer/Internals/CommandDispatcher.cpp	Mon Aug 04 12:16:50 2014 +0200
@@ -726,14 +726,16 @@
 
         // Check whether this request is allowed by the security filter
         if (supported && 
+            request != DicomRequestType_Echo &&  // Always allow incoming ECHO requests
             filter_ != NULL &&
             !filter_->IsAllowedRequest(callingIP_, callingAETitle_, request))
         {
           LOG(ERROR) << EnumerationToString(request) 
                      << " requests are disallowed for the AET \"" 
                      << callingAETitle_ << "\"";
-          cond = DIMSE_BADCOMMANDTYPE;
+          cond = DIMSE_ILLEGALASSOCIATION;
           supported = false;
+          finished = true;
         }
 
         // in case we received a supported message, process this command