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

(-)a/servconf.c (-4 / +8 lines)
Lines 1809-1821 process_server_config_line_depth(ServerOptions *options, char *line, Link Here
1809
			fatal("%s line %d: %s missing argument.",
1809
			fatal("%s line %d: %s missing argument.",
1810
			    filename, linenum, keyword);
1810
			    filename, linenum, keyword);
1811
		if (!*activep) {
1811
		if (!*activep) {
1812
			arg = argv_next(&ac, &av);
1812
			argv_consume(&ac);
1813
			break;
1813
			break;
1814
		}
1814
		}
1815
		for (i = 0; i < options->num_subsystems; i++)
1815
		for (i = 0; i < options->num_subsystems; i++) {
1816
			if (strcmp(arg, options->subsystem_name[i]) == 0)
1816
			if (strcmp(arg, options->subsystem_name[i]) == 0) {
1817
				fatal("%s line %d: Subsystem '%s' "
1817
				logit("%s line %d: Subsystem '%s' "
1818
				    "already defined.", filename, linenum, arg);
1818
				    "already defined.", filename, linenum, arg);
1819
				argv_consume(&ac);
1820
				break;
1821
			}
1822
		}
1819
		options->subsystem_name[options->num_subsystems] = xstrdup(arg);
1823
		options->subsystem_name[options->num_subsystems] = xstrdup(arg);
1820
		arg = argv_next(&ac, &av);
1824
		arg = argv_next(&ac, &av);
1821
		if (!arg || *arg == '\0')
1825
		if (!arg || *arg == '\0')

Return to bug 3236