Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist Fix obvious logic error



details:   https://anonhg.NetBSD.org/src/rev/e71c83c52b0d
branches:  trunk
changeset: 767630:e71c83c52b0d
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Jul 25 08:51:10 2011 +0000

description:
Fix obvious logic error

diffstat:

 crypto/external/bsd/openssh/dist/ssh.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 685c038d5126 -r e71c83c52b0d crypto/external/bsd/openssh/dist/ssh.c
--- a/crypto/external/bsd/openssh/dist/ssh.c    Mon Jul 25 05:46:12 2011 +0000
+++ b/crypto/external/bsd/openssh/dist/ssh.c    Mon Jul 25 08:51:10 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ssh.c,v 1.6 2011/07/25 03:03:11 christos Exp $ */
+/*     $NetBSD: ssh.c,v 1.7 2011/07/25 08:51:10 joerg Exp $    */
 /* $OpenBSD: ssh.c,v 1.356 2011/01/06 22:23:53 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
@@ -42,7 +42,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: ssh.c,v 1.6 2011/07/25 03:03:11 christos Exp $");
+__RCSID("$NetBSD: ssh.c,v 1.7 2011/07/25 08:51:10 joerg Exp $");
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -1102,7 +1102,6 @@
        int interactive = 0;
        int have_tty = 0;
        struct winsize ws;
-       char *cp;
        const char *display;
 
        /* Enable compression if requested. */
@@ -1142,7 +1141,7 @@
                dp = getenv("TERM");
                if (!dp)
                        dp = "";
-               packet_put_cstring(cp);
+               packet_put_cstring(dp);
 
                /* Store window size in the packet. */
                if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0)



Home | Main Index | Thread Index | Old Index