projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7185343
)
Only log known Acct-Status-Types. Bug found by Coverity
author
Alan T. DeKok
<aland@freeradius.org>
Thu, 6 Sep 2012 08:54:27 +0000
(10:54 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Thu, 6 Sep 2012 09:33:24 +0000
(11:33 +0200)
src/modules/rlm_acctlog/rlm_acctlog.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_acctlog/rlm_acctlog.c
b/src/modules/rlm_acctlog/rlm_acctlog.c
index
da16628
..
86374a4
100644
(file)
--- 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);