14 lines
395 B
Groff
14 lines
395 B
Groff
diff --git a/net/netfilter/xt_sctp.c b/net/netfilter/xt_sctp.c
|
|
index 34bd872..c29692c 100644
|
|
--- a/net/netfilter/xt_sctp.c
|
|
+++ b/net/netfilter/xt_sctp.c
|
|
@@ -62,7 +62,7 @@ #endif
|
|
|
|
do {
|
|
sch = skb_header_pointer(skb, offset, sizeof(_sch), &_sch);
|
|
- if (sch == NULL) {
|
|
+ if (sch == NULL || sch->length == 0) {
|
|
duprintf("Dropping invalid SCTP packet.\n");
|
|
*hotdrop = 1;
|
|
return 0;
|