aboutsummaryrefslogtreecommitdiff
path: root/ares/ares__get_hostent.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-06-02 19:42:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-06-02 19:42:25 +0000
commit2ae9536d324163b308c2f18f7d054d49f92d242a (patch)
treea984868c06bfcaf189cdcb87a64aaf007da36b60 /ares/ares__get_hostent.c
parentf5713dbb2ee1c182c5393066dfc7b15b2b267a0b (diff)
Ashish Sharma provided a patch for supporting multiple entries in the
/etc/hosts file. Patch edited for coding style and functionality by me (Daniel).
Diffstat (limited to 'ares/ares__get_hostent.c')
-rw-r--r--ares/ares__get_hostent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ares/ares__get_hostent.c b/ares/ares__get_hostent.c
index 312a678ec..dc5f8ad4f 100644
--- a/ares/ares__get_hostent.c
+++ b/ares/ares__get_hostent.c
@@ -183,6 +183,7 @@ int ares__get_hostent(FILE *fp, int family, struct hostent **host)
free(hostent->h_addr_list);
free(hostent);
}
+ *host = NULL;
return ARES_ENOMEM;
}