Skip to content

Commit 1326b03

Browse files
committed
Merge pull request #3561 from martelletto/trim-cr
gpg-interface: trim CR from ssh-keygen -Y find-principals
2 parents e8cf4f2 + c410155 commit 1326b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpg-interface.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static int verify_ssh_signed_buffer(struct signature_check *sigc,
509509
if (!*line)
510510
break;
511511

512-
trust_size = strcspn(line, "\n");
512+
trust_size = strcspn(line, "\r\n");
513513
principal = xmemdupz(line, trust_size);
514514

515515
child_process_init(&ssh_keygen);

0 commit comments

Comments
 (0)