init family

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3492 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-09-13 01:43:28 +00:00
parent 2c1bc61507
commit be563f32d7

View File

@@ -2143,6 +2143,8 @@ tn(int argc, char **argv)
host = gethostbyname(hostp);
#endif
if (host) {
family = host->h_addrtype;
switch(family) {
case AF_INET:
memset(&sin, 0, sizeof(sin));