|
@@ -774,6 +774,7 @@ UA_ClientConnectionTCP_init(UA_ConnectionConfig config, const UA_String endpoint
|
|
|
|
|
|
TCPClientConnection *tcpClientConnection = (TCPClientConnection*) UA_malloc(
|
|
TCPClientConnection *tcpClientConnection = (TCPClientConnection*) UA_malloc(
|
|
sizeof(TCPClientConnection));
|
|
sizeof(TCPClientConnection));
|
|
|
|
+ memset(tcpClientConnection, 0, sizeof(TCPClientConnection));
|
|
connection.handle = (void*) tcpClientConnection;
|
|
connection.handle = (void*) tcpClientConnection;
|
|
tcpClientConnection->timeout = timeout;
|
|
tcpClientConnection->timeout = timeout;
|
|
UA_String hostnameString = UA_STRING_NULL;
|
|
UA_String hostnameString = UA_STRING_NULL;
|