Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2001 01:02:16 -0500
From:      ryan beasley <ryanb@goddamnbastard.org>
To:        stable@FreeBSD.org, Matthew L Creech <gte733p@prism.gatech.edu>, green@FreeBSD.org
Subject:   Re: sshd core dump
Message-ID:  <20011024010216.B509@bjorn.goddamnbastard.org>
In-Reply-To: <20011017205017.A9625@bjorn.goddamnbastard.org>; from ryanb@goddamnbastard.org on Wed, Oct 17, 2001 at 08:50:17PM -0500
References:  <3BBA7E1E.931F087D@prism.gatech.edu> <20011017205017.A9625@bjorn.goddamnbastard.org>

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

--/NkBOFFp2J2Af1nK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 17, 2001 at 08:50:17PM -0500, ryan beasley wrote:
>     Anywho, here's some information that will hopefully help some
>     people.  If any more specifics are required, I'm up for any
>     assistance I could provide.

    Sorry for replying to myself, but I drafted this little "patch" that
    should take care of the segfault in session.c.  After thinking about
    this for a bit, it probably should've been _really_ obvious to me
    after the first lookover ...

--- 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 =3D NULL;
 	u_int envsize, i;
-	char **env;
+	char **env =3D NULL;
 	extern char **environ;
 	struct stat st;
 	char *argv[10];

--=20
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

--/NkBOFFp2J2Af1nK
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE71llnCbo22TYyHRMRAkENAKCo3sJbGaOwOaZeov8y6kBjelNdHACgm3VH
vNCz/MRInh+wbQ016cby9to=
=SZ7N
-----END PGP SIGNATURE-----

--/NkBOFFp2J2Af1nK--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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