Browse Source

[core] fix segfault when parsing a bad config file

(thx goblin)

x-ref:
  "fix a segfault when parsing a bad config file"
  https://github.com/lighttpd/lighttpd1.4/pull/75

github: closes #75
personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
f792d84cf9
  1. 2
      src/configfile-glue.c

2
src/configfile-glue.c

@ -79,7 +79,7 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t
buffer_copy_buffer(cv[i].destination, ds->value);
} else {
log_error_write(srv, __FILE__, __LINE__, "ssss", cv[i].key, "should have been a string like ... = \"...\"");
log_error_write(srv, __FILE__, __LINE__, "ss", cv[i].key, "should have been a string like ... = \"...\"");
return -1;
}

Loading…
Cancel
Save