Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26464
b: refs/heads/master
c: e17df68
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and Linus Torvalds committed May 3, 2006
1 parent 55c4716 commit 60343f9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ebf34c9b6fcd22338ef764b039b3ac55ed0e297b
refs/heads/master: e17df688f7064dae1417ce425dd1e4b71d24d63b
11 changes: 7 additions & 4 deletions trunk/net/ipv4/netfilter/ip_conntrack_proto_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,15 @@ static int do_basic_checks(struct ip_conntrack *conntrack,
flag = 1;
}

/* Cookie Ack/Echo chunks not the first OR
Init / Init Ack / Shutdown compl chunks not the only chunks */
if ((sch->type == SCTP_CID_COOKIE_ACK
/*
* Cookie Ack/Echo chunks not the first OR
* Init / Init Ack / Shutdown compl chunks not the only chunks
* OR zero-length.
*/
if (((sch->type == SCTP_CID_COOKIE_ACK
|| sch->type == SCTP_CID_COOKIE_ECHO
|| flag)
&& count !=0 ) {
&& count !=0) || !sch->length) {
DEBUGP("Basic checks failed\n");
return 1;
}
Expand Down
11 changes: 7 additions & 4 deletions trunk/net/netfilter/nf_conntrack_proto_sctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,15 @@ static int do_basic_checks(struct nf_conn *conntrack,
flag = 1;
}

/* Cookie Ack/Echo chunks not the first OR
Init / Init Ack / Shutdown compl chunks not the only chunks */
if ((sch->type == SCTP_CID_COOKIE_ACK
/*
* Cookie Ack/Echo chunks not the first OR
* Init / Init Ack / Shutdown compl chunks not the only chunks
* OR zero-length.
*/
if (((sch->type == SCTP_CID_COOKIE_ACK
|| sch->type == SCTP_CID_COOKIE_ECHO
|| flag)
&& count !=0 ) {
&& count !=0) || !sch->length) {
DEBUGP("Basic checks failed\n");
return 1;
}
Expand Down

0 comments on commit 60343f9

Please sign in to comment.