Przeglądaj źródła

return the correct error message for republish

Julius Pfrommer 9 lat temu
rodzic
commit
267c9b7afe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/server/ua_services_subscription.c

+ 1 - 1
src/server/ua_services_subscription.c

@@ -321,5 +321,5 @@ void Service_Republish(UA_Server *server, UA_Session *session, const UA_Republis
         response->responseHeader.serviceResult =
             UA_NotificationMessage_copy(&entry->message, &response->notificationMessage);
     else
-      response->responseHeader.serviceResult = UA_STATUSCODE_BADSEQUENCENUMBERINVALID;
+      response->responseHeader.serviceResult = UA_STATUSCODE_BADMESSAGENOTAVAILABLE;
 }