aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index b67e3d83b48a..1f4eeb43fbd6 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -180,8 +180,7 @@ int sctp_rcv(struct sk_buff *skb)
180 * If a frame arrives on an interface and the receiving socket is 180 * If a frame arrives on an interface and the receiving socket is
181 * bound to another interface, via SO_BINDTODEVICE, treat it as OOTB 181 * bound to another interface, via SO_BINDTODEVICE, treat it as OOTB
182 */ 182 */
183 if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) 183 if (sk->sk_bound_dev_if && (sk->sk_bound_dev_if != af->skb_iif(skb))) {
184 {
185 if (asoc) { 184 if (asoc) {
186 sctp_association_put(asoc); 185 sctp_association_put(asoc);
187 asoc = NULL; 186 asoc = NULL;
@@ -610,8 +609,7 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
610 if (ICMP_FRAG_NEEDED == code) { 609 if (ICMP_FRAG_NEEDED == code) {
611 sctp_icmp_frag_needed(sk, asoc, transport, info); 610 sctp_icmp_frag_needed(sk, asoc, transport, info);
612 goto out_unlock; 611 goto out_unlock;
613 } 612 } else {
614 else {
615 if (ICMP_PROT_UNREACH == code) { 613 if (ICMP_PROT_UNREACH == code) {
616 sctp_icmp_proto_unreachable(sk, asoc, 614 sctp_icmp_proto_unreachable(sk, asoc,
617 transport); 615 transport);