Explorar o código

Fix processBinaryMessage freeing memory which it is not allowed

Only copying the buffer is not reallocating.
Setting realloced to true causes processBinaryMessage to call
UA_ByteArray_deleteMembers instead of connection->releaseRecvBuffer
Stefan Profanter %!s(int64=7) %!d(string=hai) anos
pai
achega
2bd5563847
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/ua_connection.c

+ 0 - 1
src/ua_connection.c

@@ -108,7 +108,6 @@ separateIncompleteChunk(UA_Connection *connection, UA_ByteString * UA_RESTRICT m
                 return retval;
             memcpy(connection->incompleteMessage.data, message->data, message->length);
             connection->releaseRecvBuffer(connection, message);
-            *realloced = true;
         } else {
             connection->incompleteMessage = *message;
             *message = UA_BYTESTRING_NULL;