>From eb8a08b0f0e056795edbb73cc10f7e8cac5694f1 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 24 Aug 2009 11:52:54 +0100 Subject: [PATCH 2/2] Signed-off-by: root put a small unlang wrapper around the detail module to protect it from bad packets --- raddb/sites-available/default | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/raddb/sites-available/default b/raddb/sites-available/default index 184baa7..316def7 100644 --- a/raddb/sites-available/default +++ b/raddb/sites-available/default @@ -339,7 +339,15 @@ accounting { # Create a 'detail'ed log of the packets. # Note that accounting requests which are proxied # are also logged in the detail file. - detail + + # protect the detail module from bad packets + if (Acct-Session-Time != 0 ) { + detail + } + else { + ok + } + # daily # Update the wtmp file -- 1.6.2.5