mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01: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
@ -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…
x
Reference in New Issue
Block a user