Browse Source

Discovery Services do not fail for micro profile now

Stasik0 9 years ago
parent
commit
bed0bbb071
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_server_binary.c

+ 1 - 1
src/server/ua_server_binary.c

@@ -435,7 +435,7 @@ processRequest(UA_SecureChannel *channel, UA_Server *server, UA_UInt32 requestId
     UA_Session anonymousSession;
     if(!session) {
         //allow calling getendpoint service with invalid authenticationToken
-        if(requestType != &UA_TYPES[UA_TYPES_GETENDPOINTSREQUEST]){
+        if(requestType != &UA_TYPES[UA_TYPES_GETENDPOINTSREQUEST] && requestType != &UA_TYPES[UA_TYPES_FINDSERVERSREQUEST]){
             if(sessionRequired || !UA_NodeId_equal(&requestHeader->authenticationToken, &UA_NODEID_NULL)) {
                 UA_LOG_INFO_CHANNEL(server->config.logger, channel, "Service request %i without a valid session",
                                     requestTypeId.identifier.numeric - UA_ENCODINGOFFSET_BINARY);