From: Brendan O'Dea Date: Fri, 12 Aug 2005 08:18:46 +0000 (+0000) Subject: don't allocate radius for PAP if ip set X-Git-Tag: 2.2.1-2fdn3.1~19^2^2~1^2~128 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/5f269dec12e99d8d5429424dfcb637da4ce65cca?ds=inline;hp=9187ed0d99d8711d87c9ee32c6b01715cfb44e8a don't allocate radius for PAP if ip set --- diff --git a/ppp.c b/ppp.c index 55edf58..630ca59 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];