]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Index the headers starting with 1, just like all the data. (#4880)
authorMark Donnelly <mark@painless-security.com>
Thu, 2 Feb 2023 15:07:31 +0000 (10:07 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 15:07:31 +0000 (10:07 -0500)
src/bin/radsniff.c

index cc922ac9c8d56e4fe4af1c19e4937d4f26fb358b..f6db58cb63916bf6bd6718be520a93450f3c4977 100644 (file)
@@ -760,7 +760,7 @@ static void rs_stats_print_csv_header(rs_update_t *this)
                        name,
                        name);
 
-               for (j = 0; j <= RS_RETRANSMIT_MAX; j++) {
+               for (j = 1; j <= RS_RETRANSMIT_MAX; j++) {
                        if (j != RS_RETRANSMIT_MAX) {
                                fprintf(stdout, ",\"%s rtx (%i)\"", name, j);
                        } else {