summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp/files/ntp-4.2.6p5-cve-2014-9296.patch
blob: a85f65d2aaec4f7af28d9ff201dd798fb439068c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CVE-2014-9296 ntp: receive() missing return on error

Upstream-Status: Backport [Debian]

Signed-off-by: Armin Kuster <akuster808@gmail.com>

2014-12-12 11:24:22+00:00, stenn@psp-fb1.ntp.org +1 -0
  [Sec 2670] Missing return; from error clause

Index: git/ntpd/ntp_proto.c
===================================================================
--- git.orig/ntpd/ntp_proto.c	2014-12-20 18:45:42.760821618 +0100
+++ git/ntpd/ntp_proto.c	2014-12-20 18:46:00.153176945 +0100
@@ -947,6 +947,7 @@
 				fast_xmit(rbufp, MODE_ACTIVE, 0,
 				    restrict_mask);
 				sys_restricted++;
+				return;
 			}
 		}