diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: ssh.c,v 1.154 2001/12/27 20:39:58 markus Exp $"); | 42 | RCSID("$OpenBSD: ssh.c,v 1.155 2001/12/28 12:14:27 markus Exp $"); |
43 | 43 | ||
44 | #include <openssl/evp.h> | 44 | #include <openssl/evp.h> |
45 | #include <openssl/err.h> | 45 | #include <openssl/err.h> |
@@ -976,7 +976,7 @@ ssh_session(void) | |||
976 | 976 | ||
977 | /* Read response from the server. */ | 977 | /* Read response from the server. */ |
978 | type = packet_read(&plen); | 978 | type = packet_read(&plen); |
979 | packet_done(); | 979 | packet_check_eom(); |
980 | if (type != SSH_SMSG_SUCCESS) | 980 | if (type != SSH_SMSG_SUCCESS) |
981 | log("Warning: Remote host denied authentication agent forwarding."); | 981 | log("Warning: Remote host denied authentication agent forwarding."); |
982 | } | 982 | } |
@@ -1023,7 +1023,7 @@ client_subsystem_reply(int type, int plen, u_int32_t seq, void *ctxt) | |||
1023 | len = buffer_len(&command); | 1023 | len = buffer_len(&command); |
1024 | if (len > 900) | 1024 | if (len > 900) |
1025 | len = 900; | 1025 | len = 900; |
1026 | packet_done(); | 1026 | packet_check_eom(); |
1027 | if (type == SSH2_MSG_CHANNEL_FAILURE) | 1027 | if (type == SSH2_MSG_CHANNEL_FAILURE) |
1028 | fatal("Request for subsystem '%.*s' failed on channel %d", | 1028 | fatal("Request for subsystem '%.*s' failed on channel %d", |
1029 | len, (u_char *)buffer_ptr(&command), id); | 1029 | len, (u_char *)buffer_ptr(&command), id); |