View | Details | Raw Unified | Return to bug 1376
Collapse All | Expand All

(-)openssh-4.7p1/ssh-keygen.c (-2 / +2 lines)
Lines 598-604 Link Here
598
}
598
}
599
599
600
static void
600
static void
601
print_host(FILE *f, char *name, Key *public, int hash)
601
print_host(FILE *f, const char *name, Key *public, int hash)
602
{
602
{
603
	if (hash && (name = host_hash(name, NULL, 0)) == NULL)
603
	if (hash && (name = host_hash(name, NULL, 0)) == NULL)
604
		fatal("hash_host failed");
604
		fatal("hash_host failed");
Lines 726-732 Link Here
726
					printf("# Host %s found: "
726
					printf("# Host %s found: "
727
					    "line %d type %s\n", name,
727
					    "line %d type %s\n", name,
728
					    num, key_type(public));
728
					    num, key_type(public));
729
					print_host(out, cp, public, hash_hosts);
729
					print_host(out, name, public, hash_hosts);
730
				}
730
				}
731
				if (delete_host && !c)
731
				if (delete_host && !c)
732
					print_host(out, cp, public, 0);
732
					print_host(out, cp, public, 0);

Return to bug 1376