Initial srv
before using it in bind(2)
MFC after: 3 days Reported by: Coverity CID: 1357526 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
b3f130849c
commit
009d88d5a7
@ -72,6 +72,7 @@ main(int argc, char **argv)
|
||||
if (sock < 0)
|
||||
err(EXIT_FAILURE, "socket");
|
||||
|
||||
memset(&srv, 0, sizeof(srv));
|
||||
srv.sin_len = sizeof(srv);
|
||||
srv.sin_family = AF_INET;
|
||||
srv.sin_port = htons(port);
|
||||
|
Loading…
x
Reference in New Issue
Block a user