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

Collapse All | Expand All

(-)sshd.c (-5 / +5 lines)
Lines 1219-1225 server_accept_loop(int *sock_in, int *so Link Here
1219
	}
1219
	}
1220
}
1220
}
1221
1221
1222
1223
/*
1222
/*
1224
 * Main program for the daemon.
1223
 * Main program for the daemon.
1225
 */
1224
 */
Lines 1337-1343 main(int ac, char **av) Link Here
1337
			break;
1336
			break;
1338
		case 'h':
1337
		case 'h':
1339
			if (options.num_host_key_files >= MAX_HOSTKEYS) {
1338
			if (options.num_host_key_files >= MAX_HOSTKEYS) {
1340
				fprintf(stderr, "too many host keys.\n");
1339
				fprintf(stderr, "Too many host keys.\n");
1340
				exit(1);
1341
			}
1342
			if (*optarg != '/') {
1343
				fprintf(stderr, "Host key path is not absolute\n");
1341
				exit(1);
1344
				exit(1);
1342
			}
1345
			}
1343
			options.host_key_files[options.num_host_key_files++] = optarg;
1346
			options.host_key_files[options.num_host_key_files++] = optarg;
Lines 1452-1460 main(int ac, char **av) Link Here
1452
	/* load private host keys */
1455
	/* load private host keys */
1453
	sensitive_data.host_keys = xcalloc(options.num_host_key_files,
1456
	sensitive_data.host_keys = xcalloc(options.num_host_key_files,
1454
	    sizeof(Key *));
1457
	    sizeof(Key *));
1455
	for (i = 0; i < options.num_host_key_files; i++)
1456
		sensitive_data.host_keys[i] = NULL;
1457
1458
	for (i = 0; i < options.num_host_key_files; i++) {
1458
	for (i = 0; i < options.num_host_key_files; i++) {
1459
		key = key_load_private(options.host_key_files[i], "", NULL);
1459
		key = key_load_private(options.host_key_files[i], "", NULL);
1460
		sensitive_data.host_keys[i] = key;
1460
		sensitive_data.host_keys[i] = key;
(-)servconf.c (+3 lines)
Lines 773-778 parse_filename: Link Here
773
		if (!arg || *arg == '\0')
773
		if (!arg || *arg == '\0')
774
			fatal("%s line %d: missing file name.",
774
			fatal("%s line %d: missing file name.",
775
			    filename, linenum);
775
			    filename, linenum);
776
		if (*arg != '/')
777
			fatal("%s line %d: path is not absolute.",
778
			    filename, linenum);
776
		if (*activep && *charptr == NULL) {
779
		if (*activep && *charptr == NULL) {
777
			*charptr = tilde_expand_filename(arg, getuid());
780
			*charptr = tilde_expand_filename(arg, getuid());
778
			/* increase optional counter */
781
			/* increase optional counter */

Return to bug 1290