bugfix stats request
authorit-eddy <it-eddy@users.noreply.github.com>
Tue, 9 Aug 2016 12:28:57 +0000 (14:28 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Aug 2016 15:00:20 +0000 (17:00 +0200)
bugfix for stats request to server for specific client (accounting).
bit matrix was evaluated at wrong position.

src/main/stats.c

index 0067d36..8305e44 100644 (file)
@@ -656,7 +656,7 @@ void request_stats_reply(REQUEST *request)
                                                    &client->auth);
                        }
 #ifdef WITH_ACCOUNTING
-                       if ((flag->vp_integer & 0x01) != 0) {
+                       if ((flag->vp_integer & 0x02) != 0) {
                                request_stats_addvp(request, client_acctvp,
                                                    &client->acct);
                        }