From: Greg Hudson Date: Wed, 21 Apr 2010 23:14:49 +0000 (+0000) Subject: In t_inetd, zero out l_inaddr before filling it in, as is relatively X-Git-Tag: krb5-1.9-beta1~279 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3376608c3df0c522c2b928c72f7e89cee7c9e949;p=krb5.git 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 --- 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;