diff options
| author | Werner Koch <[email protected]> | 2022-01-28 18:59:11 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2022-01-28 18:59:11 +0000 |
| commit | 934a60de6b8892ea990c77f8bef8b2872e31a0f2 (patch) | |
| tree | bc9f01b129fdc5b491d90fe0898504ba4893bb0e /common/ssh-utils.c | |
| parent | gpg: Allow --dearmor to decode all kinds of armor files. (diff) | |
| download | gnupg-934a60de6b8892ea990c77f8bef8b2872e31a0f2.tar.gz gnupg-934a60de6b8892ea990c77f8bef8b2872e31a0f2.zip | |
ssh: Fix adding an ed25519 key with a zero length comment.
* agent/command-ssh.c (sexp_key_construct): Do not put an empty string
into an S-expression.
(stream_read_string): Do not not try to a read a zero length block.
--
Actually we could handles this different by not putting a comment tag
into the s-expression, however this requires more code and at other
places we already return "(none)" instead of an empty comment.
The second fix is more or less a cosmetic thing to get better error
messages in case the underlying read system call returns an error.
GnuPG-bug-id: 5794
Diffstat (limited to 'common/ssh-utils.c')
0 files changed, 0 insertions, 0 deletions
