Only log known Acct-Status-Types. Bug found by Coverity
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 08:54:27 +0000 (10:54 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 6 Sep 2012 09:33:24 +0000 (11:33 +0200)
src/modules/rlm_acctlog/rlm_acctlog.c

index da16628..86374a4 100644 (file)
@@ -110,6 +110,9 @@ static int do_acctlog_acct(void *instance, REQUEST *request)
                        radius_xlat(logstr, sizeof(logstr), inst->acctoff, request, NULL);
                break;
 
+       default:
+               *logstr = 0;
+
        }
 
        if (*logstr) radlog(L_ACCT,"%s", logstr);