Changeset 19 in Main for trunk/Server/config.c
- Timestamp:
- Sep 14, 2024, 9:51:41 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/config.c
r18 r19 35 35 config.vhosts[i].sslkey = NULL; 36 36 config.vhosts[i].sslcert = NULL; 37 config.vhosts[i].root = NULL; 37 38 } 38 39 config.root.sslkey = NULL; 39 40 config.root.sslcert = NULL; 41 config.root.root = NULL; 40 42 config.vhost_count = 0; 41 43 config.module_count = 0; … … 130 132 current->sslcert = cm_strdup(r[1]); 131 133 } 134 } else if(cm_strcaseequ(r[0], "DocumentRoot")) { 135 if(r[1] == NULL) { 136 cm_log("Config", "Missing path at line %d", ln); 137 stop = 1; 138 } else { 139 if(current->root != NULL) free(current->root); 140 current->root = cm_strdup(r[1]); 141 } 132 142 } else if(cm_strcaseequ(r[0], "ServerRoot")) { 133 143 if(r[1] == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.