|
@@ -13,7 +13,7 @@ UA_ByteString UA_Connection_completeMessages(UA_Connection *connection, UA_ByteS
|
|
if(received.length == -1)
|
|
if(received.length == -1)
|
|
return received;
|
|
return received;
|
|
|
|
|
|
-
|
|
+
|
|
UA_ByteString current;
|
|
UA_ByteString current;
|
|
if(connection->incompleteMessage.length < 0)
|
|
if(connection->incompleteMessage.length < 0)
|
|
current = received;
|
|
current = received;
|
|
@@ -58,14 +58,15 @@ UA_ByteString UA_Connection_completeMessages(UA_Connection *connection, UA_ByteS
|
|
end_pos += length;
|
|
end_pos += length;
|
|
}
|
|
}
|
|
|
|
|
|
- if(current.length == 0) {
|
|
+ if(current.length == 0) {
|
|
|
|
+
|
|
UA_String_deleteMembers(¤t);
|
|
UA_String_deleteMembers(¤t);
|
|
current.length = -1;
|
|
current.length = -1;
|
|
return current;
|
|
return current;
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
if(end_pos == 0) {
|
|
if(end_pos == 0) {
|
|
|
|
+
|
|
connection->incompleteMessage = current;
|
|
connection->incompleteMessage = current;
|
|
UA_String_init(current);
|
|
UA_String_init(current);
|
|
} else if(current.length != end_pos) {
|
|
} else if(current.length != end_pos) {
|