Skip to content

Commit

Permalink
#26
Browse files Browse the repository at this point in the history
  • Loading branch information
jikamens committed Sep 22, 2018
1 parent 0f20d98 commit 92c1875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opendmarc/opendmarc-arcares.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ opendmarc_arcares_arc_parse (u_char *hdr_arc, struct arcares_arc_field *arc)

leading_space_len = strspn(token, " \n");
token_ptr = token + leading_space_len;
if (*token_ptr == '\0')
return 0;
tag_label = strsep(&token_ptr, "=");
tag_value = opendmarc_arcares_strip_whitespace(token_ptr);
tag_code = opendmarc_arcares_convert(aar_arc_tags, tag_label);
Expand Down
2 changes: 2 additions & 0 deletions opendmarc/opendmarc-arcseal.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ opendmarc_arcseal_parse(u_char *hdr, struct arcseal *as)

leading_space_len = strspn(token, " \n");
token_ptr = token + leading_space_len;
if (*token_ptr == '\0')
return 0;
tag_label = strsep(&token_ptr, "=");
tag_value = opendmarc_arcseal_strip_whitespace(token_ptr);

Expand Down

0 comments on commit 92c1875

Please sign in to comment.