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

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

Merge "netfilter: xt_socket: Restore mark from full sockets only"

parents 4346fc52 da02c831
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -244,7 +244,7 @@ socket_match(const struct sk_buff *skb, struct xt_action_param *par,
			transparent = xt_socket_sk_is_transparent(sk);

		if (info->flags & XT_SOCKET_RESTORESKMARK && !wildcard &&
		    transparent)
		    transparent && sk_fullsock(sk))
			pskb->mark = sk->sk_mark;

		sock_gen_put(sk);
@@ -433,7 +433,7 @@ socket_mt6_v1_v2_v3(const struct sk_buff *skb, struct xt_action_param *par)
			transparent = xt_socket_sk_is_transparent(sk);

		if (info->flags & XT_SOCKET_RESTORESKMARK && !wildcard &&
		    transparent)
		    transparent && sk_fullsock(sk))
			pskb->mark = sk->sk_mark;

		if (sk != skb->sk)