X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/ab7669fc2deccce57e76bcf53d533b8c2fab85e0..5bcf1eb45ac0d39caa05e4d8e6b5de4faa88df7b:/garden.c diff --git a/garden.c b/garden.c index 1fa11b3..ff8978d 100644 --- a/garden.c +++ b/garden.c @@ -9,7 +9,7 @@ /* walled garden */ -char const *cvs_id = "$Id: garden.c,v 1.19 2004/12/01 02:52:46 bodea Exp $"; +char const *cvs_id = "$Id: garden.c,v 1.20.2.1 2005/05/07 03:51:20 bodea Exp $"; int plugin_api_version = PLUGIN_API_VERSION; static struct pluginfuncs *p = 0; @@ -213,8 +213,8 @@ int garden_session(sessiont *s, int flag) if (flag != F_CLEANUP) { /* OK, we're up! */ - u16 r = p->radiusnew(p->get_id_by_session(s)); - p->radiussend(r, RADIUSSTART); + uint16_t r = p->radiusnew(p->get_id_by_session(s)); + if (r) p->radiussend(r, RADIUSSTART); } }