Просмотр исходного кода

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

Conflicts:
	src/server/ua_server_binary.c
Stasik0 лет назад: 10
Родитель
Сommit
ac8e6113d3
1 измененных файлов с 2 добавлено и 1 удалено
  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