svn commit: r319062 - head/tests/sys/netinet
Ngie Cooper
ngie at FreeBSD.org
Sun May 28 09:08:32 UTC 2017
Author: ngie
Date: Sun May 28 09:08:30 2017
New Revision: 319062
URL: https://svnweb.freebsd.org/changeset/base/319062
Log:
Initial `srv` before using it in bind(2)
MFC after: 3 days
Reported by: Coverity
CID: 1357526
Sponsored by: Dell EMC Isilon
Modified:
head/tests/sys/netinet/tcp_user_cookie.c
Modified: head/tests/sys/netinet/tcp_user_cookie.c
==============================================================================
--- head/tests/sys/netinet/tcp_user_cookie.c Sun May 28 09:01:58 2017 (r319061)
+++ head/tests/sys/netinet/tcp_user_cookie.c Sun May 28 09:08:30 2017 (r319062)
@@ -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);
More information about the svn-src-head
mailing list