]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshshare.c
Log identifying information for the other end of connections.
[PuTTY.git] / sshshare.c
index 54d58a6624bfdb9b19b4d32afb37b2943e9e3751..2b2f69a914f736d3605741f73050d30cdfd4615a 100644 (file)
@@ -1924,6 +1924,7 @@ static int share_listen_accepting(Plug plug,
     struct ssh_sharing_state *sharestate = (struct ssh_sharing_state *)plug;
     struct ssh_sharing_connstate *cs;
     const char *err;
+    char *peerinfo;
 
     /*
      * A new downstream has connected to us.
@@ -1966,7 +1967,9 @@ static int share_listen_accepting(Plug plug,
     cs->forwardings = newtree234(share_forwarding_cmp);
     cs->globreq_head = cs->globreq_tail = NULL;
 
-    ssh_sharing_downstream_connected(sharestate->ssh, cs->id);
+    peerinfo = sk_peer_info(cs->sock);
+    ssh_sharing_downstream_connected(sharestate->ssh, cs->id, peerinfo);
+    sfree(peerinfo);
 
     return 0;
 }