X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhost.c;h=86f107a302bc57ae0f2767a806f09d3978424e9a;hp=505f706c02a75233593f6a6e134a085193019dcb;hb=c25d0f6997df75d73264a5d6de71cdeee3ba40d7;hpb=aed17cca1419aca96201390559554fb53a358374 diff --git a/src/host.c b/src/host.c index 505f706c..86f107a3 100644 --- a/src/host.c +++ b/src/host.c @@ -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++) {