LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ntp-4.2.6p2-ntpq-speedup-782060.patch of Package ntp (Project network:time)

From: Bernhard M. Wiedemann <bwiedemann suse de>

   do not ask for ntp service in all protocols
   which is very slow (bnc#782060)
--- libntp/decodenetnum.c.orig	2012-11-12 15:12:02.000000000 +0100
+++ libntp/decodenetnum.c	2012-11-12 15:13:18.000000000 +0100
@@ -70,7 +70,7 @@
 	}
 	ZERO(hints);
 	hints.ai_flags = Z_AI_NUMERICHOST;
-	err = getaddrinfo(cp, "ntp", &hints, &ai);
+	err = getaddrinfo(cp, NULL, &hints, &ai);
 	if (err != 0)
 		return 0;
 	NTP_INSIST(ai->ai_addrlen <= sizeof(*netnum));