Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2001 00:48:25 -0500
From:      ryan beasley <ryanb@goddamnbastard.org>
To:        gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/31457: OpenSSH 2.9 login(1) support broken
Message-ID:  <20011024004825.A509@bjorn.goddamnbastard.org>
In-Reply-To: <200110231830.f9NIU0c57379@freefall.freebsd.org>; from gnats-admin@FreeBSD.org on Tue, Oct 23, 2001 at 11:30:00AM -0700
References:  <20011023182104.23219.qmail@bjorn.goddamnbastard.org> <200110231830.f9NIU0c57379@freefall.freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Tue, Oct 23, 2001 at 11:30:00AM -0700, gnats-admin@FreeBSD.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `bin/31457'.
> The individual assigned to look at your
> report is: freebsd-bugs. 

    You just gotta love pointer initialization.  After poking around for
    a bit, I modified session.c to take care of proper declaration of
    **env.  This will now call the initialization code at
    session.c:1128.  :)

--- src/crypto/openssh/session.c.orig	Wed Oct 24 00:35:57 2001
+++ src/crypto/openssh/session.c	Wed Oct 24 00:36:26 2001
@@ -1003,7 +1003,7 @@
 	char cmd[1024];
 	FILE *f = NULL;
 	u_int envsize, i;
-	char **env;
+	char **env = NULL;
 	extern char **environ;
 	struct stat st;
 	char *argv[10];

-- 
ryan beasley				<ryanb@goddamnbastard.org>
professional fat bastard		http://www.goddamnbastard.org

	GPG Key ID 0x36321D13 with fingerprint
	2074 CEB8 68AD 351A 85E6  98EB 09BA 36D9 3632 1D13

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE71lYpCbo22TYyHRMRAn6CAJ4qkR/5poJoopA/x1i/gFubNPUmJQCcDhwS
NWzSwFLWtqAyPpusxZYlVKg=
=R0nP
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011024004825.A509>