Commit 69f68d13 authored by SAWADA Kentaro's avatar SAWADA Kentaro

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

parent 2d3d0f7a
...@@ -404,7 +404,7 @@ static int socket_udp_receive(int socket_fd, void *buf, int size) ...@@ -404,7 +404,7 @@ static int socket_udp_receive(int socket_fd, void *buf, int size)
LOG_D(PROTO_AGENT,"UDP RECEIVE\n"); LOG_D(PROTO_AGENT,"UDP RECEIVE\n");
struct sockaddr_in client; struct sockaddr_in client;
socklen_t slen = 0; socklen_t slen = sizeof(client);
int l; int l;
l = recvfrom(socket_fd, buf, size, 0, (struct sockaddr *) &client, &slen); 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