X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/29c173cadc5969d03fabac250fa9868c2481f10c..6e868a4b9d6bcb12d04848c6bfc375c190080f34:/garden.c?ds=sidebyside diff --git a/garden.c b/garden.c index 61e76da..97a36b0 100644 --- a/garden.c +++ b/garden.c @@ -9,7 +9,7 @@ /* walled garden */ -char const *cvs_id = "$Id: garden.c,v 1.21 2005/03/10 03:31:25 bodea Exp $"; +char const *cvs_id = "$Id: garden.c,v 1.22 2005/05/07 08:17:25 bodea Exp $"; int plugin_api_version = PLUGIN_API_VERSION; static struct pluginfuncs *p = 0; @@ -223,7 +223,7 @@ int garden_session(sessiont *s, int flag, char *newuser) { /* OK, we're up! */ uint16_t r = p->radiusnew(p->get_id_by_session(s)); - p->radiussend(r, RADIUSSTART); + if (r) p->radiussend(r, RADIUSSTART); } }