summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-07-15 02:02:51 +0000
committerbrian <brian@FreeBSD.org>1999-07-15 02:02:51 +0000
commit22b3a1ff3e436c4b063421f0b7c8200314db235a (patch)
treec4dcb595ebe0a3f2859e10e5864c700fb74f2373 /usr.sbin/ppp
parent9560f2b1988b3b343ece8c59c1f0e3eb8da8c0f9 (diff)
downloadFreeBSD-src-22b3a1ff3e436c4b063421f0b7c8200314db235a.zip
FreeBSD-src-22b3a1ff3e436c4b063421f0b7c8200314db235a.tar.gz
Don't declare `end' if we aren't compiling radius support.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/chap.c6
1 files changed, 4 insertions, 2 deletions
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,
OpenPOWER on IntegriCloud