From 22b3a1ff3e436c4b063421f0b7c8200314db235a Mon Sep 17 00:00:00 2001 From: brian Date: Thu, 15 Jul 1999 02:02:51 +0000 Subject: Don't declare `end' if we aren't compiling radius support. --- usr.sbin/ppp/chap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ppp') diff --git a/usr.sbin/ppp/chap.c b/usr.sbin/ppp/chap.c index d9d63bb..f2dac18 100644 --- a/usr.sbin/ppp/chap.c +++ b/usr.sbin/ppp/chap.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.c,v 1.51 1999/06/02 15:58:55 brian Exp $ + * $Id: chap.c,v 1.52 1999/06/09 08:47:29 brian Exp $ * * TODO: */ @@ -543,7 +543,7 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) struct chap *chap = &p->dl->chap; char *name, *key, *ans; int len, nlen; - u_char alen, end; + u_char alen; #ifdef HAVE_DES int lanman; #endif @@ -694,6 +694,8 @@ chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) nlen = strlen(name); #ifndef NORADIUS if (*bundle->radius.cfg.file) { + u_char end; + end = chap->challenge.local[*chap->challenge.local+1]; chap->challenge.local[*chap->challenge.local+1] = '\0'; radius_Authenticate(&bundle->radius, &chap->auth, -- cgit v1.1