aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgkey2ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpgkey2ssh.c')
-rw-r--r--tools/gpgkey2ssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgkey2ssh.c b/tools/gpgkey2ssh.c
index 3dcb6516e..dd2b5bb2c 100644
--- a/tools/gpgkey2ssh.c
+++ b/tools/gpgkey2ssh.c
@@ -85,7 +85,7 @@ retrieve_key_material (FILE *fp, const char *hexkeyid, int *algorithm_id,
break; /* EOF. */
if (i < 0)
{
- err = gpg_error_from_errno (errno);
+ err = gpg_error_from_syserror ();
goto leave; /* Error. */
}
if (!max_length)