Index: src/auth/cellconfig.c =================================================================== RCS file: /cvs/openafs/src/auth/cellconfig.c,v retrieving revision 1.12 diff -u -r1.12 cellconfig.c --- src/auth/cellconfig.c 2001/07/12 19:58:25 1.12 +++ src/auth/cellconfig.c 2001/07/15 02:10:19 @@ -600,14 +600,18 @@ if (type == T_AFSDB) { struct hostent *he; + short afsdb_type; + afsdb_type = (p[0] << 8) | p[1]; code = dn_expand(answer, answer+len, p+2, host, sizeof(host)); if (code < 0) return AFSCONF_NOTFOUND; - /* Do we want to get TTL data for the A record as well? */ - he = gethostbyname(host); - if (he && server_num < MAXHOSTSPERCELL) { + if ((afsdb_type == 1) && + (server_num < MAXHOSTSPERCELL) && + /* Do we want to get TTL data for the A record as well? */ + (he = gethostbyname(host))) + { afs_int32 ipaddr; memcpy(&ipaddr, he->h_addr, he->h_length); acellInfo->hostAddr[server_num].sin_addr.s_addr = ipaddr;