|
Lines 296-302
kex_prop_free(char **proposal)
Link Here
|
| 296 |
static int |
296 |
static int |
| 297 |
kex_protocol_error(int type, u_int32_t seq, void *ctxt) |
297 |
kex_protocol_error(int type, u_int32_t seq, void *ctxt) |
| 298 |
{ |
298 |
{ |
| 299 |
error("Hm, kex protocol error: type %d seq %u", type, seq); |
299 |
struct ssh *ssh = active_state; /* XXX */ |
|
|
300 |
|
| 301 |
error("kex protocol error: type %d seq %u", type, seq); |
| 302 |
if ((r = sshpkt_start(ssh, SSH2_MSG_UNIMPLEMENTED)) != 0 || |
| 303 |
(r = sshpkt_put_u32(ssh, seq)) != 0 || |
| 304 |
(r = sshpkt_send(ssh)) != 0) |
| 305 |
return r; |
| 300 |
return 0; |
306 |
return 0; |
| 301 |
} |
307 |
} |
| 302 |
|
308 |
|