diff options
author | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-07-13 15:14:17 +0200 |
---|---|---|
committer | Thomas Wolf <thomas.wolf@paranor.ch> | 2019-07-15 13:26:06 +0200 |
commit | 6e741bc1eba324e571c7a3f2f851dc490854176d (patch) | |
tree | 55a6900ab511d44ba96d05bb37d4605c36dc275f /org.eclipse.jgit.ssh.apache/src | |
parent | b8a514fdcbedc49f885c41216fb482ac49c19c8e (diff) | |
download | jgit-6e741bc1eba324e571c7a3f2f851dc490854176d.tar.gz jgit-6e741bc1eba324e571c7a3f2f851dc490854176d.zip |
sshd: shared reference in JGitClientSession must be volatile
The proxy handler may be re-set from an unspecified I/O thread.
Declare the shared variable as volatile.
Change-Id: I4e7ce393ae2cdc7f1cd4edf40c137da6d6c50ad5
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
Diffstat (limited to 'org.eclipse.jgit.ssh.apache/src')
-rw-r--r-- | org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java index 2f089474e7..4ce4f6aade 100644 --- a/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java +++ b/org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java @@ -98,7 +98,7 @@ public class JGitClientSession extends ClientSessionImpl { private CredentialsProvider credentialsProvider; - private StatefulProxyConnector proxyHandler; + private volatile StatefulProxyConnector proxyHandler; /** * @param manager |