* Use correct talloc context in rlm_exec. Fixes #1338.
* Fixed bug with coa/acct stats value #1339. Based on patch from
Jorge Pereira.
+ * Fixed bug with radmin related to the option "stats detail <filename>"
FreeRADIUS 3.0.10 Mon 05 Oct 2015 15:00:00 EDT urgency=medium
Feature improvements
static int command_stats_detail(rad_listen_t *listener, int argc, char *argv[])
{
rad_listen_t *this;
- listen_detail_t *data;
+ listen_detail_t *data, *needle;
struct stat buf;
if (argc == 0) {
for (this = main_config.listen; this != NULL; this = this->next) {
if (this->type != RAD_LISTEN_DETAIL) continue;
- data = this->data;
- if (strcmp(argv[1], data->filename) != 0) continue;
-
- break;
+ needle = this->data;
+ if (!strcmp(argv[0], needle->filename)) {
+ data = needle;
+ break;
+ }
}
if (!data) {