From 7a7305e5445c01d89482fe34013d0f62f1d1e4f6 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 10 Feb 2005 19:39:16 +0000 Subject: [PATCH] - check vnet_active before executing runtime vnet code --- net/ipv4/icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index fa5b05c7e..5fc4935d1 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -1035,7 +1035,7 @@ int icmp_rcv(struct sk_buff *skb) #if defined(CONFIG_VNET) || defined(CONFIG_VNET_MODULE) /* VNET: Bypass stack if the echo ID was bound to a (presumably raw) socket */ - if (skb->sk) { + if (vnet_active && skb->sk) { switch (icmph->type) { case ICMP_ECHOREPLY: case ICMP_ECHO: -- 2.47.0