Home Home > GIT Browse > SLE15-SP2
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2019-12-04 18:29:30 +0100
committerDenis Kirjanov <dkirjanov@suse.com>2019-12-11 16:09:13 +0300
commit6d1fc3dc918fc4acf7dbc218b4d7a131c7360f31 (patch)
tree990ef71dcaa40d05a27e3c9fe8f5bb525c1c98e5
parent33f388f023fb6e9452e94d84e068f03ffdef5b92 (diff)
Update patches.suse/sctp-change-sctp_prot-.no_autobind-with-true.patch (networking-stable-19_10_24 bsc#1158082). suse-commit: 12c818025f80ecdc1994acb49aca061fca0b0687
-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);
}