Skip to content

Commit

Permalink
remove manual fr_extend_lowat()
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 1, 2023
1 parent 6d7ec7d commit 0436310
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/server/users_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ int pairlist_read(TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR
bool leading_spaces;
PAIR_LIST *t;

fr_sbuff_extend_lowat(NULL, &sbuff, 1024);

/*
* If the line is empty or has only comments,
* then we don't care about leading spaces.
Expand Down Expand Up @@ -393,8 +391,6 @@ int pairlist_read(TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR
comma = false;

check_item:
fr_sbuff_extend_lowat(NULL, &sbuff, 1024);

/*
* Skip spaces before the item, and allow the
* check list to end on comment or LF.
Expand Down Expand Up @@ -527,8 +523,6 @@ int pairlist_read(TALLOC_CTX *ctx, fr_dict_t const *dict, char const *file, PAIR
comma = false;

reply_item:
fr_sbuff_extend_lowat(NULL, &sbuff, 1024);

/*
* Reply items start with spaces. If there's no
* spaces, then the current entry is done. Add
Expand Down

0 comments on commit 0436310

Please sign in to comment.