Skip to content

Commit

Permalink
skip leading whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 19, 2019
1 parent cd7f266 commit a744c67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bin/unit_test_attribute.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,8 @@ static size_t command_encode_dns_label(command_result_t *result, UNUSED command_
fr_type_t type = FR_TYPE_STRING;
fr_value_box_t *box = talloc_zero(NULL, fr_value_box_t);

fr_skip_whitespace(p);

if (fr_value_box_from_str(box, box, &type, NULL, p, -1, '"', false) < 0) {
talloc_free(box);
RETURN_OK_WITH_ERROR();
Expand Down

0 comments on commit a744c67

Please sign in to comment.