View | Details | Raw Unified | Return to bug 2494 | Differences between
and this patch

Collapse All | Expand All

(-)a/kex.c (-1 / +8 lines)
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
	int r;
301
302
	error("kex protocol error: type %d seq %u", type, seq);
303
	if ((r = sshpkt_start(ssh, SSH2_MSG_UNIMPLEMENTED)) != 0 ||
304
	    (r = sshpkt_put_u32(ssh, seq)) != 0 ||
305
	    (r = sshpkt_send(ssh)) != 0)
306
		return r;
300
	return 0;
307
	return 0;
301
}
308
}
302
309

Return to bug 2494