Explorar el Código

Safeguard against uninitialized ACK-Tracking fields added, which are apparently not correctly set to NULL on ms-windows?

Chris Iatrou hace 9 años
padre
commit
0f103c0853
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/client/ua_client.c

+ 2 - 0
src/client/ua_client.c

@@ -969,6 +969,8 @@ UA_Boolean UA_Client_processPublishRx(UA_Client *client, UA_PublishResponse resp
         tmpAck = (UA_Client_NotificationsAckNumber *) UA_malloc(sizeof(UA_Client_NotificationsAckNumber));
         tmpAck->subAck.sequenceNumber = msg.sequenceNumber;
         tmpAck->subAck.subscriptionId = sub->SubscriptionID;
+	tmpAck->listEntry.le_next = UA_NULL;
+	tmpAck->listEntry.le_prev = UA_NULL;
         LIST_INSERT_HEAD(&(client->pendingNotificationsAcks), tmpAck, listEntry);
     }