|
|
|
@ -216,6 +216,7 @@ static int single_domain(ares_channel channel, const char *name, char **s) |
|
|
|
|
char *line = NULL; |
|
|
|
|
int linesize, status; |
|
|
|
|
const char *p, *q; |
|
|
|
|
int error; |
|
|
|
|
|
|
|
|
|
/* If the name contains a trailing dot, then the single query is the name
|
|
|
|
|
* sans the trailing dot. |
|
|
|
@ -265,6 +266,22 @@ static int single_domain(ares_channel channel, const char *name, char **s) |
|
|
|
|
if (status != ARES_SUCCESS) |
|
|
|
|
return status; |
|
|
|
|
} |
|
|
|
|
else
|
|
|
|
|
{ |
|
|
|
|
error = ERRNO; |
|
|
|
|
switch(error)
|
|
|
|
|
{ |
|
|
|
|
case ENOENT: |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n", |
|
|
|
|
error, strerror(error))); |
|
|
|
|
DEBUGF(fprintf(stderr, "Error opening file: %s\n",
|
|
|
|
|
hostaliases)); |
|
|
|
|
*s = NULL; |
|
|
|
|
return ARES_EFILE; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|