Skip to content

Commit

Permalink
Merge pull request #3561 from martelletto/trim-cr
Browse files Browse the repository at this point in the history
gpg-interface: trim CR from ssh-keygen -Y find-principals
  • Loading branch information
dscho committed Nov 27, 2021
2 parents 2ca94ab + 9e3a9ff commit da054c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpg-interface.c
Expand Up @@ -497,7 +497,7 @@ static int verify_ssh_signed_buffer(struct signature_check *sigc,
if (!*line)
break;

trust_size = strcspn(line, "\n");
trust_size = strcspn(line, "\r\n");
principal = xmemdupz(line, trust_size);

child_process_init(&ssh_keygen);
Expand Down

0 comments on commit da054c1

Please sign in to comment.