[IPSEC]: Fix esp_decap_data size verification in esp4.
Signed-off-by: Edgar E Iglesias <edgar@axis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
08e9cd1fc5
commit
36839836e8
@@ -478,7 +478,7 @@ static int __init esp4_init(void)
|
|||||||
{
|
{
|
||||||
struct xfrm_decap_state decap;
|
struct xfrm_decap_state decap;
|
||||||
|
|
||||||
if (sizeof(struct esp_decap_data) <
|
if (sizeof(struct esp_decap_data) >
|
||||||
sizeof(decap.decap_data)) {
|
sizeof(decap.decap_data)) {
|
||||||
extern void decap_data_too_small(void);
|
extern void decap_data_too_small(void);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user