mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Ensure it doesn't print more IPs than available ones.
This commit is contained in:
parent
aed17cca14
commit
c25d0f6997
@ -1,3 +1,8 @@
|
||||
2011-08-06 Jochen Roderburg <Roderburg@Uni-Koeln.DE>
|
||||
|
||||
* host.c (lookup_host): Ensure it doesn't print more IPs than available
|
||||
ones.
|
||||
|
||||
2011-08-06 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* init.c (defaults): Set default value for show_all_dns_entries.
|
||||
|
@ -828,8 +828,8 @@ lookup_host (const char *host, int flags)
|
||||
int i;
|
||||
int printmax = al->count;
|
||||
|
||||
if (! opt.show_all_dns_entries)
|
||||
printmax = 3;
|
||||
if (!opt.show_all_dns_entries && printmax > 3)
|
||||
printmax = 3;
|
||||
|
||||
for (i = 0; i < printmax; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user