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

(-)a/ssh-keyscan.c (-1 / +5 lines)
Lines 64-69 int hash_hosts = 0; /* Hash hostname on output */ Link Here
64
64
65
int print_sshfp = 0;		/* Print SSHFP records instead of known_hosts */
65
int print_sshfp = 0;		/* Print SSHFP records instead of known_hosts */
66
66
67
int found_one = 0;		/* Successfully found a key */
68
67
#define MAXMAXFD 256
69
#define MAXMAXFD 256
68
70
69
/* The number of seconds after which to give up on a TCP connection */
71
/* The number of seconds after which to give up on a TCP connection */
Lines 269-274 keyprint_one(const char *host, struct sshkey *key) Link Here
269
	char *hostport;
271
	char *hostport;
270
	const char *known_host, *hashed;
272
	const char *known_host, *hashed;
271
273
274
	found_one = 1;
275
272
	if (print_sshfp) {
276
	if (print_sshfp) {
273
		export_dns_rr(host, key, stdout, 0);
277
		export_dns_rr(host, key, stdout, 0);
274
		return;
278
		return;
Lines 782-786 main(int argc, char **argv) Link Here
782
	while (ncon > 0)
786
	while (ncon > 0)
783
		conloop();
787
		conloop();
784
788
785
	return (0);
789
	return found_one ? 0 : 1;
786
}
790
}

Return to bug 2903