From 3376608c3df0c522c2b928c72f7e89cee7c9e949 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 21 Apr 2010 23:14:49 +0000 Subject: [PATCH] In t_inetd, zero out l_inaddr before filling it in, as is relatively common in networking code. Silences a Coverity defect. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23916 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/t_inetd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/dejagnu/t_inetd.c b/src/tests/dejagnu/t_inetd.c index dbee2838d..72d51fd7f 100644 --- a/src/tests/dejagnu/t_inetd.c +++ b/src/tests/dejagnu/t_inetd.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -97,6 +98,7 @@ main(argc, argv) (void) setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof (one)); + memset(&l_inaddr, 0, sizeof(l_inaddr)); l_inaddr.sin_family = AF_INET; l_inaddr.sin_addr.s_addr = 0; l_inaddr.sin_port = port; -- 2.26.2