Skip site navigation (1)Skip section navigation (2)
Date:      25 Apr 2002 18:34:52 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Josef Karthauser <joe@tao.org.uk>
Cc:        "Jordan K. Hubbard" <jkh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/crypto/openssh servconf.c sshd_config
Message-ID:  <xzp8z7bybwz.fsf@flood.ping.uio.no>
In-Reply-To: <20020425113715.GB21335@genius.tao.org.uk>
References:  <200204250559.g3P5xrS51528@freefall.freebsd.org> <xzp662gyq1m.fsf@flood.ping.uio.no> <20020425113715.GB21335@genius.tao.org.uk>

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

Josef Karthauser <joe@tao.org.uk> writes:
> Can you find a better way of preventing this:

See the attached patch against -STABLE.  As previously mentioned,
-CURRENT does not suffer from this problem.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=auth-chall.diff

Index: auth-chall.c
===================================================================
RCS file: /home/ncvs/src/crypto/openssh/auth-chall.c,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 auth-chall.c
--- auth-chall.c	28 Sep 2001 01:33:33 -0000	1.2.2.1
+++ auth-chall.c	25 Apr 2002 16:31:18 -0000
@@ -77,7 +77,7 @@
 {
 	static char challenge[1024];
 	struct opie opie;
-	if (opiechallenge(&opie, authctxt->user, challenge) == -1)
+	if (opiechallenge(&opie, authctxt->user, challenge) != 0)
 		return NULL;
 	strlcat(challenge, "\nS/Key Password: ", sizeof challenge);
 	return challenge;

--=-=-=--

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




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