From: Edgar E Iglesias Date: Wed, 1 Jun 2005 00:08:05 +0000 (-0700) Subject: [IPSEC]: Fix esp_decap_data size verification in esp4. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=36839836e8132731e0cadddce452423036a1d5b3;p=openwrt%2Fstaging%2Fblogic.git [IPSEC]: Fix esp_decap_data size verification in esp4. Signed-off-by: Edgar E Iglesias Signed-off-by: David S. Miller --- diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 053a883247ba..eae84cc39d3f 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -478,7 +478,7 @@ static int __init esp4_init(void) { struct xfrm_decap_state decap; - if (sizeof(struct esp_decap_data) < + if (sizeof(struct esp_decap_data) > sizeof(decap.decap_data)) { extern void decap_data_too_small(void);