Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rt-UA
open62541
Commits
5625d1d2
Commit
5625d1d2
authored
5 years ago
by
Julius Pfrommer
Browse files
Options
Download
Email Patches
Plain Diff
Fix an invalid memory access in the network layer uncovered by asan
parent
43f0632e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/ua_network_tcp.c
+1
-1
plugins/ua_network_tcp.c
with
1 addition
and
1 deletion
+1
-1
plugins/ua_network_tcp.c
View file @
5625d1d2
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help