summaryrefslogtreecommitdiffstats
path: root/package/busybox/0005-ntpd.patch
blob: f652ec667c0b7e3ce18d73d5b5e99fbe8ce14159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From upstream: https://busybox.net/downloads/fixes-1.25.0/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

--- busybox-1.25.0/networking/ntpd.c
+++ busybox-1.25.0-ntpd/networking/ntpd.c
@@ -2051,6 +2051,13 @@ recv_and_process_client_pkt(void /*int f
 		goto bail;
 	}
 
+	/* Respond only to client and symmetric active packets */
+	if ((msg.m_status & MODE_MASK) != MODE_CLIENT
+	 && (msg.m_status & MODE_MASK) != MODE_SYM_ACT
+	) {
+		goto bail;
+	}
+
 	query_status = msg.m_status;
 	query_xmttime = msg.m_xmttime;
 
OpenPOWER on IntegriCloud