瀏覽代碼

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;
 }