Skip to content

Commit

Permalink
MT#61757 fix logic booboo/typo
Browse files Browse the repository at this point in the history
This fixes all valid CDRs failing verification. Whoops.

Change-Id: I82260da7303c02edafa74ba7b2d15f423b699ba9
  • Loading branch information
rfuchs committed Dec 30, 2024
1 parent 74f3ce2 commit c9201d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,8 @@ static bool cdr_verify_field(const GString *f, size_t max) {

// return false if one of the fields is too long
bool cdr_verify_fields(const cdr_entry_t *cdr) {
#define F(f, x) if (cdr_verify_field(cdr->f, x)) return false;
#define FA(f, a, x) for (unsigned int j = 0; j < a; j++) if (cdr_verify_field(cdr->f[j], x)) return false;
#define F(f, x) if (!cdr_verify_field(cdr->f, x)) return false;
#define FA(f, a, x) for (unsigned int j = 0; j < a; j++) if (!cdr_verify_field(cdr->f[j], x)) return false;

#include "cdr_field_names.inc"

Expand Down

0 comments on commit c9201d3

Please sign in to comment.