diff options
author | Alina Djamankulova <adjama@google.com> | 2021-02-05 10:12:25 -0800 |
---|---|---|
committer | Alina Djamankulova <adjama@google.com> | 2021-02-05 18:14:59 -0500 |
commit | f077158acf64dfee6fafba46d2db375a1c938809 (patch) | |
tree | 6fd1012a7a4ba769d43c05439d7ead183d77c583 /org.eclipse.jgit/src/org/eclipse | |
parent | 4560bdf7e2e3c16a7c7bb3f2fcf067bb1eee26fb (diff) | |
download | jgit-f077158acf64dfee6fafba46d2db375a1c938809.tar.gz jgit-f077158acf64dfee6fafba46d2db375a1c938809.zip |
TransportGitAnon: remove unnecessary socket bind to a local address
before connecting.
A socket gets bound on connect in the next line.
Signed-off-by: Alina Djamankulova <adjama@google.com>
Change-Id: I69a423c592e2fdd582b3c40099137b4ef3d05b39
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java index fa4392d5aa..a1914b6182 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java @@ -121,7 +121,6 @@ class TransportGitAnon extends TcpTransport implements PackTransport { final Socket s = new Socket(); try { final InetAddress host = InetAddress.getByName(uri.getHost()); - s.bind(null); s.connect(new InetSocketAddress(host, port), tms); } catch (IOException c) { try { |