Upgrade sshd to 2.6.0
[netconf.git] / netconf / callhome-protocol / src / main / java / org / opendaylight / netconf / callhome / protocol / CallHomeSessionContext.java
index 68902d8da73f2af1684a7e6034ec5fb77bd8b687..bbdfabbc5f980caa61c3982c245a00bd5ab63fc8 100644 (file)
@@ -56,7 +56,7 @@ class CallHomeSessionContext implements CallHomeProtocolSessionContext {
         this.sshSession = requireNonNull(sshSession, "sshSession");
         this.sshSession.setAttribute(SESSION_KEY, this);
         this.remoteAddress = (InetSocketAddress) this.sshSession.getIoSession().getRemoteAddress();
-        this.serverKey = this.sshSession.getKex().getServerKey();
+        this.serverKey = this.sshSession.getServerKey();
     }
 
     static CallHomeSessionContext getFrom(final ClientSession sshSession) {