Browse Source

Merge branch 'udp' of https://github.com/acplt/open62541 into udp

Conflicts:
	src/server/ua_server_binary.c
Stasik0 10 years ago
parent
commit
ac8e6113d3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/server/ua_server_binary.c

+ 2 - 1
src/server/ua_server_binary.c

@@ -54,6 +54,7 @@ static void processHEL(UA_Connection *connection, const UA_ByteString *msg, UA_U
     UA_TcpMessageHeader_encodeBinary(&ackHeader, &ack_msg, &tmpPos);
     UA_TcpAcknowledgeMessage_encodeBinary(&ackMessage, &ack_msg, &tmpPos);
     UA_ByteStringArray answer_buf = { .stringsSize = 1, .strings = &ack_msg };
+    // the string is freed internall in the (asynchronous) write
     connection->write(connection, answer_buf);
     UA_TcpHelloMessage_deleteMembers(&helloMessage);
 }
@@ -465,7 +466,7 @@ void UA_Server_processBinaryMessage(UA_Server *server, UA_Connection *connection
                 	//fixme: we need to think about keepalive
                 	connection->close(connection);
                 	break;
-                }else{
+                } else {
                 	connection->close(connection);
                 }
 #else