mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Fix auth key comment handling.
* agent/command-ssh.c (ssh_send_key_public): Handle the case with no comment.
This commit is contained in:
parent
57011da53e
commit
fb24808db9
1 changed files with 3 additions and 1 deletions
|
@ -2331,7 +2331,9 @@ ssh_send_key_public (estream_t stream, gcry_sexp_t key,
|
|||
else
|
||||
{
|
||||
err = ssh_key_extract_comment (key, &comment);
|
||||
if (!err)
|
||||
if (err)
|
||||
err = stream_write_cstring (stream, "(none)");
|
||||
else
|
||||
err = stream_write_cstring (stream, comment);
|
||||
}
|
||||
if (err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue