Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2019-12-04 18:29:30 +0100
committerMichal Kubecek <mkubecek@suse.cz>2019-12-04 18:29:30 +0100
commit70067eecd579fc04790ee209d32c09c4df8f49b7 (patch)
treeb033cfb8c4f680459de4304a97f12685b933ff6e
parent74b24ad68539c9089b2910310060ad399bfccf02 (diff)
fix SCTP regression (bsc#1158082)
Update patches.suse/sctp-change-sctp_prot-.no_autobind-with-true.patch (networking-stable-19_10_24 bsc#1158082). suse-commit: a188d6f56ed82993a9d18c9e4496866d17a168b1
-rw-r--r--net/ipv4/af_inet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 68d8bfa8b268..21d5556861cd 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -535,7 +535,8 @@ int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr,
if (uaddr->sa_family == AF_UNSPEC)
return sk->sk_prot->disconnect(sk, flags);
- if (!inet_sk(sk)->inet_num && inet_autobind(sk))
+ if (!inet_sk(sk)->inet_num && !sk->sk_prot->no_autobind &&
+ inet_autobind(sk))
return -EAGAIN;
return sk->sk_prot->connect(sk, uaddr, addr_len);
}