Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9b935b5 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "xfrm: validate template mode"

parents 6fe240c8 f0e859bb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1435,6 +1435,9 @@ static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family)
		    (ut[i].family != prev_family))
			return -EINVAL;

		if (ut[i].mode >= XFRM_MODE_MAX)
			return -EINVAL;

		prev_family = ut[i].family;

		switch (ut[i].family) {