dns_ho.c revision 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829
2N/A/* from gethostnamadr.c 8.1 (Berkeley) 6/4/93 */
2N/A/* BIND Id: gethnamaddr.c,v 8.15 1996/05/22 04:56:30 vixie Exp $ */
2N/A#include "port_before.h"
2N/A#include "port_after.h"
2N/A#ifdef SPRINTF_CHAR
2N/Astruct dns_res_target {
2N/A struct dns_res_target *q, *p;
2N/A case RESTGT_DOALWAYS:
2N/A case RESTGT_AFTERFAILURE:
2N/A case RESTGT_IGNORE:
2N/A case RESTGT_DOALWAYS:
2N/A case RESTGT_AFTERFAILURE:
2N/A case RESTGT_IGNORE:
2N/Astatic struct __res_state *
2N/A case RESTGT_DOALWAYS:
2N/A case RESTGT_AFTERFAILURE:
2N/A case RESTGT_IGNORE:
2N/A if (n > MAXHOSTNAMELEN) {
2N/A haveanswer = 0;
2N/A if (haveanswer) {
2N/A#ifdef LOG_SECURITY
2N/A#ifdef RES_USE_DNAME
2N/A n >= MAXHOSTNAMELEN) {
2N/A if (!haveanswer) {
2N/A if (!haveanswer) {
2N/A haveanswer++;
2N/A if (haveanswer) {
2N/A goto no_recovery;