ReFix Coverity Scan CID 340273 (Using uninitialized value slen when calling recvfrom.)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user