diff options
author | Jeroen van Bemmel <jvb127@gmail.com> | 2012-07-12 11:23:28 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2012-07-12 11:31:48 +0530 |
commit | 7b6e99be77c24a79cb07416d81796b45176923c6 (patch) | |
tree | ec6fdfbc4df5a1dec8305ff8d9cd75a6e0d0608f /nss/nsswitch.h | |
parent | a766fb45a3473c416df010d614287012f7a00838 (diff) | |
download | glibc-7b6e99be77c24a79cb07416d81796b45176923c6.zip glibc-7b6e99be77c24a79cb07416d81796b45176923c6.tar.gz glibc-7b6e99be77c24a79cb07416d81796b45176923c6.tar.bz2 |
Avoid duplicate DNS requests if answer is longer than a implementation
limit
[BZ #14307]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
the temporary buffer used to invoke __gethostbyname2_r,
__gethostbyaddr_r and gethostbyname4_r to make room for struct
host_data / struct gaih_addrtuple.
* resolv/nss_dns/dns-host.c (global scope): Move definition of
implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
header file nss/nsswitch.h.
* nss/nsswitch.h (global scope): Add definition of implementation
constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
resolv/nss_dns/dns-host.c).
Diffstat (limited to 'nss/nsswitch.h')
-rw-r--r-- | nss/nsswitch.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nss/nsswitch.h b/nss/nsswitch.h index 90e208b..047a9e5 100644 --- a/nss/nsswitch.h +++ b/nss/nsswitch.h @@ -1,5 +1,4 @@ -/* Copyright (C) 1996-1999,2001,2002,2003,2004,2007,2010,2011 - Free Software Foundation, Inc. +/* Copyright (C) 1996-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -198,4 +197,8 @@ extern int __nss_hostname_digits_dots (const char *name, int *h_errnop); libc_hidden_proto (__nss_hostname_digits_dots) +/* Maximum number of aliases we allow. */ +#define MAX_NR_ALIASES 48 +#define MAX_NR_ADDRS 48 + #endif /* nsswitch.h */ |