about summary refs log tree commit diff
path: root/src/rdisc/nm-rdisc.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-04-06 00:47:13 +0200
committerMichael Biebl <biebl@debian.org>2016-04-06 00:47:13 +0200
commit45bb35bff2a8d258aff2c1d9b68cce1787c7da62 (patch)
treee9da08b1d189befb839889185b4f3304d389a60f /src/rdisc/nm-rdisc.c
parentd101696d539cd03172badbcde19e9a13e5707ee1 (diff)
parent2bfb3eb7d0323e69affca154395f51d8b577414d (diff)
Merge tag 'upstream/1.1.93'
Upstream version 1.1.93
Diffstat (limited to 'src/rdisc/nm-rdisc.c')
-rw-r--r--src/rdisc/nm-rdisc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rdisc/nm-rdisc.c b/src/rdisc/nm-rdisc.c
index 689fe7f6..12e3962b 100644
--- a/src/rdisc/nm-rdisc.c
+++ b/src/rdisc/nm-rdisc.c
@@ -212,6 +212,9 @@ nm_rdisc_add_route (NMRDisc *rdisc, const NMRDiscRoute *new)
 {
 	int i, insert_idx = -1;
 
+	if (new->plen == 0 || new->plen > 128)
+		return FALSE;
+
 	for (i = 0; i < rdisc->routes->len; i++) {
 		NMRDiscRoute *item = &g_array_index (rdisc->routes, NMRDiscRoute, i);