diff options
author | 2003-11-17 09:45:39 +0000 | |
---|---|---|
committer | 2003-11-17 09:45:39 +0000 | |
commit | 3c7791bdf7c946885132c3bd4f08dc262b7f2acd (patch) | |
tree | cf2942af5e87dbec456bda7f0e8c72e6d7529018 /usr.bin/ssh/sshconnect2.c | |
parent | sync (diff) | |
download | wireguard-openbsd-3c7791bdf7c946885132c3bd4f08dc262b7f2acd.tar.xz wireguard-openbsd-3c7791bdf7c946885132c3bd4f08dc262b7f2acd.zip |
return error on msg send/receive failure (rather than fatal); ok markus@
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index f34ba50251d..2f65629e63e 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshconnect2.c,v 1.130 2003/11/14 13:19:09 markus Exp $"); +RCSID("$OpenBSD: sshconnect2.c,v 1.131 2003/11/17 09:45:39 djm Exp $"); #include "ssh.h" #include "ssh2.h" @@ -1238,7 +1238,8 @@ ssh_keysign(Key *key, u_char **sigp, u_int *lenp, buffer_init(&b); buffer_put_int(&b, packet_get_connection_in()); /* send # of socket */ buffer_put_string(&b, data, datalen); - ssh_msg_send(to[1], version, &b); + if (ssh_msg_send(to[1], version, &b) == -1) + fatal("ssh_keysign: couldn't send request"); if (ssh_msg_recv(from[0], &b) < 0) { error("ssh_keysign: no reply"); |