Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release-src > by-pkgid > 0b1d47b1c6f4110a2d764d40ac25359d > files > 50

ntp-4.2.6p5-33.mga6.src.rpm

diff -up ntp-4.2.6p5/ntpd/ntp_request.c.cve-2016-2516 ntp-4.2.6p5/ntpd/ntp_request.c
--- ntp-4.2.6p5/ntpd/ntp_request.c.cve-2016-2516	2016-04-27 12:42:48.879803829 +0200
+++ ntp-4.2.6p5/ntpd/ntp_request.c	2016-04-27 12:42:57.112829645 +0200
@@ -1626,11 +1626,13 @@ do_unconf(
 			if (peer->flags & FLAG_CONFIG)
 				found = 1;
 		}
-		NTP_INSIST(found);
-		NTP_INSIST(peer);
 
-		peer_clear(peer, "GONE");
-		unpeer(peer);
+		if (found) {
+			NTP_INSIST(peer);
+
+			peer_clear(peer, "GONE");
+			unpeer(peer);
+		}
 
 		cp = (struct conf_unpeer *)
 			((char *)cp + INFO_ITEMSIZE(inpkt->mbz_itemsize));