aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/bind_addr.c2
-rw-r--r--net/sctp/ipv6.c1
-rw-r--r--net/sctp/protocol.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index d6664dd30e56..00994158e496 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -163,8 +163,6 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
163 if (!addr->a.v4.sin_port) 163 if (!addr->a.v4.sin_port)
164 addr->a.v4.sin_port = htons(bp->port); 164 addr->a.v4.sin_port = htons(bp->port);
165 165
166 flip_to_h(&addr->a_h, &addr->a);
167
168 addr->use_as_src = use_as_src; 166 addr->use_as_src = use_as_src;
169 167
170 INIT_LIST_HEAD(&addr->list); 168 INIT_LIST_HEAD(&addr->list);
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index b3fa426bd1dc..04d5e13e9183 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -336,7 +336,6 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
336 addr->a.v6.sin6_port = 0; 336 addr->a.v6.sin6_port = 0;
337 addr->a.v6.sin6_addr = ifp->addr; 337 addr->a.v6.sin6_addr = ifp->addr;
338 addr->a.v6.sin6_scope_id = dev->ifindex; 338 addr->a.v6.sin6_scope_id = dev->ifindex;
339 addr->a_h = addr->a;
340 INIT_LIST_HEAD(&addr->list); 339 INIT_LIST_HEAD(&addr->list);
341 list_add_tail(&addr->list, addrlist); 340 list_add_tail(&addr->list, addrlist);
342 } 341 }
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index c20f05b3308f..807c97da33a5 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -153,7 +153,6 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist,
153 addr->a.v4.sin_family = AF_INET; 153 addr->a.v4.sin_family = AF_INET;
154 addr->a.v4.sin_port = 0; 154 addr->a.v4.sin_port = 0;
155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; 155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local;
156 addr->a_h = addr->a;
157 list_add_tail(&addr->list, addrlist); 156 list_add_tail(&addr->list, addrlist);
158 } 157 }
159 } 158 }