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

Collapse All | Expand All

(-)sshconnect.c (+8 lines)
Lines 65-70 Link Here
65
65
66
char *client_version_string = NULL;
66
char *client_version_string = NULL;
67
char *server_version_string = NULL;
67
char *server_version_string = NULL;
68
Key *previous_host_key = NULL;
68
69
69
static int matching_host_key_dns = 0;
70
static int matching_host_key_dns = 0;
70
71
Lines 1223-1228 Link Here
1223
{
1224
{
1224
	int flags = 0;
1225
	int flags = 0;
1225
	char *fp;
1226
	char *fp;
1227
1228
	if (key_equal(previous_host_key, host_key))
1229
		return 1;
1230
1231
	/* The key is either accepted, or we discconnect. */
1232
	if (previous_host_key == NULL)
1233
		previous_host_key = key_from_private(host_key);
1226
1234
1227
	fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX);
1235
	fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX);
1228
	debug("Server host key: %s %s", key_type(host_key), fp);
1236
	debug("Server host key: %s %s", key_type(host_key), fp);

Return to bug 2154