Mercurial > hg > orthanc
diff OrthancServer/Internals/CommandDispatcher.cpp @ 1085:b161593551db
Always allow incoming ECHO requests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Aug 2014 12:16:50 +0200 |
parents | 01414536c930 |
children | 3db41779d8f9 |
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