Преглед на файлове

return the correct error message for republish

Julius Pfrommer преди 9 години
родител
ревизия
267c9b7afe
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
 }