Explorar o código

fix: always initialize service response in the client

Julius Pfrommer %!s(int64=8) %!d(string=hai) anos
pai
achega
c0d105cd77
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 */