Skip to content

Commit

Permalink
* Fix that ldns-read-zone and ldns_zone_new_frm_fp_l count the line
Browse files Browse the repository at this point in the history
  number for an empty line after a comment.
  • Loading branch information
wcawijngaards committed Jul 21, 2021
1 parent 46042cb commit 889f7c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog
Expand Up @@ -28,6 +28,8 @@
* PR #134 Miscellaneous spelling fixes. Thanks jsoref!
* Fix that ldns-read-zone and ldns_zone_new_frm_fp_l properly return
the $INCLUDE not implemented error.
* Fix that ldns-read-zone and ldns_zone_new_frm_fp_l count the line
number for an empty line after a comment.

1.7.1 2019-07-26
* bugfix: Manage verification paths for OpenSSL >= 1.1.0
Expand Down
3 changes: 3 additions & 0 deletions parse.c
Expand Up @@ -187,6 +187,9 @@ ldns_fget_token_l_st(FILE *f, char **token, size_t *limit, bool fixed
if (c != '\0' && c != '\n') {
*t++ = c;
}
if (c == '\n' && line_nr) {
*line_nr = *line_nr + 1;
}
if (c == '\\' && prev_c == '\\')
prev_c = 0;
else prev_c = c;
Expand Down

0 comments on commit 889f7c7

Please sign in to comment.