From: Alan T. DeKok Date: Thu, 6 Sep 2012 08:54:27 +0000 (+0200) Subject: Only log known Acct-Status-Types. Bug found by Coverity X-Git-Tag: release_3_0_0_beta0~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1baa09999568da76ff1c1f32f44e8982e83a3e;p=thirdparty%2Ffreeradius-server.git Only log known Acct-Status-Types. Bug found by Coverity --- diff --git a/src/modules/rlm_acctlog/rlm_acctlog.c b/src/modules/rlm_acctlog/rlm_acctlog.c index da16628ba5e..86374a4eebe 100644 --- a/src/modules/rlm_acctlog/rlm_acctlog.c +++ b/src/modules/rlm_acctlog/rlm_acctlog.c @@ -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);