From 10b71c3d31c7a4fe437fdda6b5730479414e935a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 19 Aug 2004 18:56:52 +0000 Subject: Update. 2004-08-19 Jakub Jelinek * sysdeps/posix/getaddrinfo.c (gaih_inet): Cast canon to (char *) to avoid warning. * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Initialize status to NSS_STATUS_UNAVAIL. 2004-08-19 Ulrich Drepper * sysdeps/posix/getaddrinfo.c (gaih_inet): Use h->h_name in the cannoname lookup since it has the FQDN even if the original NAME value has not. --- resolv/nss_dns/dns-canon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resolv/nss_dns') diff --git a/resolv/nss_dns/dns-canon.c b/resolv/nss_dns/dns-canon.c index ae3f40ba0a..91708df51f 100644 --- a/resolv/nss_dns/dns-canon.c +++ b/resolv/nss_dns/dns-canon.c @@ -52,7 +52,7 @@ _nss_dns_getcanonname_r (const char *name, char *buffer, size_t buflen, querybuf *buf; unsigned char *ptr; } ansp = { .ptr = buf }; - enum nss_status status; + enum nss_status status = NSS_STATUS_UNAVAIL; int qtypes[] = { ns_t_a, ns_t_aaaa }; #define nqtypes (sizeof (qtypes) / sizeof (qtypes[0])) -- cgit 1.4.1