summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index 045f3081f..388a25741 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: sshconnect2.c,v 1.130 2003/11/14 13:19:09 markus Exp $"); 26RCSID("$OpenBSD: sshconnect2.c,v 1.131 2003/11/17 09:45:39 djm Exp $");
27 27
28#include "openbsd-compat/sys-queue.h" 28#include "openbsd-compat/sys-queue.h"
29 29
@@ -1240,7 +1240,8 @@ ssh_keysign(Key *key, u_char **sigp, u_int *lenp,
1240 buffer_init(&b); 1240 buffer_init(&b);
1241 buffer_put_int(&b, packet_get_connection_in()); /* send # of socket */ 1241 buffer_put_int(&b, packet_get_connection_in()); /* send # of socket */
1242 buffer_put_string(&b, data, datalen); 1242 buffer_put_string(&b, data, datalen);
1243 ssh_msg_send(to[1], version, &b); 1243 if (ssh_msg_send(to[1], version, &b) == -1)
1244 fatal("ssh_keysign: couldn't send request");
1244 1245
1245 if (ssh_msg_recv(from[0], &b) < 0) { 1246 if (ssh_msg_recv(from[0], &b) < 0) {
1246 error("ssh_keysign: no reply"); 1247 error("ssh_keysign: no reply");