When using remote forwarding with SSH-1, you'd get bogus 'SSH1 cannot
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 3 Aug 2004 23:43:07 +0000 (23:43 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Tue, 3 Aug 2004 23:43:07 +0000 (23:43 +0000)
handle source address spec ":10023"; ignoring' type errors in the
Event Log. The forwarding would go ahead as normal so this is
cosmetic. Fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4392 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 2019d48..3616d21 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -3469,7 +3469,7 @@ static void ssh1_protocol(Ssh ssh, unsigned char *in, int inlen, int ispkt)
                    pf = snew(struct ssh_rportfwd);
                    strcpy(pf->dhost, host);
                    pf->dport = dport;
-                   if (saddr) {
+                   if (*saddr) {
                        logeventf(ssh,
                                  "SSH1 cannot handle source address spec \"%s:%d\"; ignoring",
                                  saddr, sport);