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

Commit 053e6bf3 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 97a89a8b b907c5c4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1404,6 +1404,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) {