소스 검색

fix: always initialize service response in the client

Julius Pfrommer 8 년 전
부모
커밋
c0d105cd77
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/client/ua_client.c

+ 1 - 0
src/client/ua_client.c

@@ -755,6 +755,7 @@ processServiceResponse(struct ResponseDescription *rd, UA_SecureChannel *channel
 
 void __UA_Client_Service(UA_Client *client, const void *r, const UA_DataType *requestType,
                          void *response, const UA_DataType *responseType) {
+    UA_init(response, responseType);
     UA_ResponseHeader *respHeader = (UA_ResponseHeader*)response;
 
     /* Make sure we have a valid session */