From 5a60f6401dffc0473c7ea0f9bf1cba4dd32ea3a7 Mon Sep 17 00:00:00 2001 From: bodea Date: Fri, 12 Aug 2005 08:18:46 +0000 Subject: [PATCH 1/1] don't allocate radius for PAP if ip set --- ppp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ppp.c b/ppp.c index d2708cd..1d59e33 100644 --- a/ppp.c +++ b/ppp.c @@ -1,6 +1,6 @@ // L2TPNS PPP Stuff -char const *cvs_id_ppp = "$Id: ppp.c,v 1.71 2005/08/11 06:22:11 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.72 2005/08/12 08:18:46 bodea Exp $"; #include #include @@ -85,8 +85,7 @@ void processpap(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l) LOG(3, s, t, "PAP login %s/%s\n", user, pass); } - r = radiusnew(s); - if (session[s].ip || !r) + if (session[s].ip || !(r = radiusnew(s))) { // respond now, either no RADIUS available or already authenticated uint8_t b[MAXCONTROL]; -- 2.20.1