Commit ca253413 authored by SAWADA Kentaro's avatar SAWADA Kentaro

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

parent f9d4f90f
......@@ -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);
......
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