svn rev #23916: trunk/src/tests/dejagnu/
ghudson@MIT.EDU
ghudson at MIT.EDU
Wed Apr 21 19:14:50 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23916
Commit By: ghudson
Log Message:
In t_inetd, zero out l_inaddr before filling it in, as is relatively
common in networking code. Silences a Coverity defect.
Changed Files:
U trunk/src/tests/dejagnu/t_inetd.c
Modified: trunk/src/tests/dejagnu/t_inetd.c
===================================================================
--- trunk/src/tests/dejagnu/t_inetd.c 2010-04-21 19:03:41 UTC (rev 23915)
+++ trunk/src/tests/dejagnu/t_inetd.c 2010-04-21 23:14:49 UTC (rev 23916)
@@ -46,6 +46,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
+#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
@@ -97,6 +98,7 @@
(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;
More information about the cvs-krb5
mailing list