ipaccess-find: Address a warning by coverity of unitialized memory
Use a memset on the sockaddr_in to make coverity happy. Fixes: CID 1040705
This commit is contained in:
parent
eb0842d17c
commit
d66e5c3ed4
|
@ -47,6 +47,7 @@ static int udp_sock(const char *ifname)
|
|||
goto err;
|
||||
}
|
||||
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.sin_family = AF_INET;
|
||||
sa.sin_port = htons(3006);
|
||||
sa.sin_addr.s_addr = INADDR_ANY;
|
||||
|
|
Loading…
Reference in New Issue