]> sjero.net Git - wget/blobdiff - src/host.c
Ensure it doesn't print more IPs than available ones.
[wget] / src / host.c
index 505f706c02a75233593f6a6e134a085193019dcb..86f107a302bc57ae0f2767a806f09d3978424e9a 100644 (file)
@@ -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++)
         {