Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23662
b: refs/heads/master
c: 2babf9d
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 25, 2006
1 parent 4d3fb1b commit 3b1fce0
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 9f514950bb907e98f280492a091aa1889b97304e
refs/heads/master: 2babf9daae4a3561f3264638a22ac7d0b14a6f52
12 changes: 4 additions & 8 deletions trunk/net/sctp/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ int sctp_rcv(struct sk_buff *skb)
union sctp_addr dest;
int family;
struct sctp_af *af;
int ret = 0;

if (skb->pkt_type!=PACKET_HOST)
goto discard_it;
Expand Down Expand Up @@ -227,16 +226,13 @@ int sctp_rcv(struct sk_buff *skb)
goto discard_release;
nf_reset(skb);

ret = sk_filter(sk, skb, 1);
if (ret)
if (sk_filter(sk, skb, 1))
goto discard_release;

/* Create an SCTP packet structure. */
chunk = sctp_chunkify(skb, asoc, sk);
if (!chunk) {
ret = -ENOMEM;
if (!chunk)
goto discard_release;
}
SCTP_INPUT_CB(skb)->chunk = chunk;

/* Remember what endpoint is to handle this packet. */
Expand Down Expand Up @@ -277,11 +273,11 @@ int sctp_rcv(struct sk_buff *skb)
sctp_bh_unlock_sock(sk);
sock_put(sk);

return ret;
return 0;

discard_it:
kfree_skb(skb);
return ret;
return 0;

discard_release:
/* Release any structures we may be holding. */
Expand Down

0 comments on commit 3b1fce0

Please sign in to comment.