]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Actually set the 'got_verstring' flag in sshshare.c!
authorSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 11:06:06 +0000 (12:06 +0100)
committerSimon Tatham <anakin@pobox.com>
Fri, 25 Sep 2015 11:10:12 +0000 (12:10 +0100)
For each connection to a downstream I had a flag indicating that we'd
sent a version string to that downstream, and one indicating that we'd
received one in return. But I never actually set the latter to TRUE -
which was OK, as it turned out, because I never used it for anything
either.

Now I do want to use it, so I'd better actually set it :-)

sshshare.c

index 873f3581878ce0878256bbef9e5d98014d6aa139..dcf805d6bf7d31e61c3beee9b8ebeb9d4983c7a9 100644 (file)
@@ -1810,6 +1810,7 @@ static int share_receive(Plug plug, int urgent, char *data, int len)
     ssh_sharing_logf(cs->parent->ssh, cs->id,
                      "Downstream version string: %.*s",
                      cs->recvlen, cs->recvbuf);
+    cs->got_verstring = TRUE;
 
     /*
      * Loop round reading packets.