# HG changeset patch # User Sebastien Jodogne # Date 1407147410 -7200 # Node ID b161593551db9a45289f8526080d6eb36ea4e5fa # Parent c608407d8dc2afd9b5fb90a44036ff1a99e7232c Always allow incoming ECHO requests diff -r c608407d8dc2 -r b161593551db OrthancServer/Internals/CommandDispatcher.cpp --- 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