Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- net/sctp/protocol.c | 5 +++++
- 1 file changed, 5 insertions(+)
+ net/sctp/protocol.c | 4 ++++
+ 1 file changed, 4 insertions(+)
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
-@@ -191,6 +191,7 @@ static void sctp_free_local_addr_list(st
- list_del(pos);
- kfree(addr);
- }
-+ memset(sa->sin_zero, 0, sizeof(sa->sin_zero));
- }
-
- /* Copy the local addresses which are valid for 'scope' into 'bp'. */
-@@ -255,6 +256,7 @@ static void sctp_v4_from_sk(union sctp_a
+@@ -255,6 +255,7 @@ static void sctp_v4_from_sk(union sctp_a
addr->v4.sin_family = AF_INET;
addr->v4.sin_port = 0;
addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr;
}
/* Initialize sk->sk_rcv_saddr from sctp_addr. */
-@@ -277,6 +279,7 @@ static void sctp_v4_from_addr_param(unio
+@@ -277,6 +278,7 @@ static void sctp_v4_from_addr_param(unio
addr->v4.sin_family = AF_INET;
addr->v4.sin_port = port;
addr->v4.sin_addr.s_addr = param->v4.addr.s_addr;
}
/* Initialize an address parameter from a sctp_addr and return the length
-@@ -301,6 +304,7 @@ static void sctp_v4_dst_saddr(union sctp
+@@ -301,6 +303,7 @@ static void sctp_v4_dst_saddr(union sctp
saddr->v4.sin_family = AF_INET;
saddr->v4.sin_port = port;
saddr->v4.sin_addr.s_addr = fl4->saddr;
}
/* Compare two addresses exactly. */
-@@ -323,6 +327,7 @@ static void sctp_v4_inaddr_any(union sct
+@@ -323,6 +326,7 @@ static void sctp_v4_inaddr_any(union sct
addr->v4.sin_family = AF_INET;
addr->v4.sin_addr.s_addr = htonl(INADDR_ANY);
addr->v4.sin_port = port;
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
- net/sctp/protocol.c | 5 +++++
- 1 file changed, 5 insertions(+)
+ net/sctp/protocol.c | 4 ++++
+ 1 file changed, 4 insertions(+)
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
-@@ -191,6 +191,7 @@ static void sctp_free_local_addr_list(st
- list_del(pos);
- kfree(addr);
- }
-+ memset(sa->sin_zero, 0, sizeof(sa->sin_zero));
- }
-
- /* Copy the local addresses which are valid for 'scope' into 'bp'. */
-@@ -257,6 +258,7 @@ static void sctp_v4_from_sk(union sctp_a
+@@ -257,6 +257,7 @@ static void sctp_v4_from_sk(union sctp_a
addr->v4.sin_family = AF_INET;
addr->v4.sin_port = 0;
addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr;
}
/* Initialize sk->sk_rcv_saddr from sctp_addr. */
-@@ -279,6 +281,7 @@ static void sctp_v4_from_addr_param(unio
+@@ -279,6 +280,7 @@ static void sctp_v4_from_addr_param(unio
addr->v4.sin_family = AF_INET;
addr->v4.sin_port = port;
addr->v4.sin_addr.s_addr = param->v4.addr.s_addr;
}
/* Initialize an address parameter from a sctp_addr and return the length
-@@ -303,6 +306,7 @@ static void sctp_v4_dst_saddr(union sctp
+@@ -303,6 +305,7 @@ static void sctp_v4_dst_saddr(union sctp
saddr->v4.sin_family = AF_INET;
saddr->v4.sin_port = port;
saddr->v4.sin_addr.s_addr = fl4->saddr;
}
/* Compare two addresses exactly. */
-@@ -325,6 +329,7 @@ static void sctp_v4_inaddr_any(union sct
+@@ -325,6 +328,7 @@ static void sctp_v4_inaddr_any(union sct
addr->v4.sin_family = AF_INET;
addr->v4.sin_addr.s_addr = htonl(INADDR_ANY);
addr->v4.sin_port = port;