Commit 5625d1d2 authored by Julius Pfrommer's avatar Julius Pfrommer
Browse files

Fix an invalid memory access in the network layer uncovered by asan

parent 43f0632e
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -395,8 +395,8 @@ ServerNetworkLayerTCP_start(UA_ServerNetworkLayer *nl, UA_Logger logger) {
"opc.tcp://%s:%d", hostname, layer->port);
#endif
du.data = (UA_Byte*)discoveryUrl;
UA_String_copy(&du, &nl->discoveryUrl);
}
UA_String_copy(&du, &nl->discoveryUrl);
/* Create the server socket */
SOCKET newsock = socket(PF_INET, SOCK_STREAM, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment