summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh-keygen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 9f6106d47..22f491cd4 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.253 2015/01/16 06:40:12 deraadt Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.254 2015/01/16 15:55:07 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1009,8 +1009,8 @@ do_gen_all_hostkeys(struct passwd *pw)
1009 first = 0; 1009 first = 0;
1010 continue; 1010 continue;
1011 } 1011 }
1012 if (!sshkey_write(public, f)) { 1012 if ((r = sshkey_write(public, f)) != 0) {
1013 fprintf(stderr, "write key failed\n"); 1013 fprintf(stderr, "write key failed: %s\n", ssh_err(r));
1014 fclose(f); 1014 fclose(f);
1015 sshkey_free(public); 1015 sshkey_free(public);
1016 first = 0; 1016 first = 0;