mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
ECHO: Catch skb_linearize out-of-memory condition
This commit is contained in:
@@ -30,7 +30,8 @@ static unsigned int echo_tg4(struct sk_buff *oldskb,
|
||||
void *payload;
|
||||
|
||||
/* This allows us to do the copy operation in fewer lines of code. */
|
||||
skb_linearize(oldskb);
|
||||
if (skb_linearize(oldskb) < 0)
|
||||
return NF_DROP;
|
||||
|
||||
oldip = ip_hdr(oldskb);
|
||||
oldudp = skb_header_pointer(oldskb, ip_hdrlen(oldskb),
|
||||
|
Reference in New Issue
Block a user