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

Commit aeebb93b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "xfrm: validate template mode"

parents 714733f2 d83617a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1406,6 +1406,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) {