Skip to content
Snippets Groups Projects
Commit 69f68d13 authored by SAWADA Kentaro's avatar SAWADA Kentaro
Browse files

ReFix Coverity Scan CID 340273 (Using uninitialized value slen when calling recvfrom.)

parent 2d3d0f7a
No related branches found
No related tags found
4 merge requests!650Release v1.1.0 Candidate,!607Develop: integration 2019 week 23,!603issue429 Coverity Scan Fix (Week22),!588Develop nr merge
......@@ -404,7 +404,7 @@ static int socket_udp_receive(int socket_fd, void *buf, int size)
LOG_D(PROTO_AGENT,"UDP RECEIVE\n");
struct sockaddr_in client;
socklen_t slen = 0;
socklen_t slen = sizeof(client);
int l;
l = recvfrom(socket_fd, buf, size, 0, (struct sockaddr *) &client, &slen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment