From f45dee2d699f0dceaf4794468cd653b45a9ecdb3 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sat, 7 Feb 2015 02:23:49 +0100 Subject: sync with -current --- config.c | 2 +- httpd.conf.5 | 4 ++-- httpd.h | 2 +- parse.y | 8 ++++---- server.c | 2 +- server_http.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config.c b/config.c index 7cd94c6..e3dd94f 100644 --- a/config.c +++ b/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.33 2015/02/05 10:46:17 reyk Exp $ */ +/* $OpenBSD: config.c,v 1.34 2015/02/07 01:23:12 reyk Exp $ */ /* * Copyright (c) 2011 - 2015 Reyk Floeter diff --git a/httpd.conf.5 b/httpd.conf.5 index 6db62e8..d5afe6d 100644 --- a/httpd.conf.5 +++ b/httpd.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: httpd.conf.5,v 1.47 2015/01/19 19:37:50 reyk Exp $ +.\" $OpenBSD: httpd.conf.5,v 1.48 2015/02/07 01:23:12 reyk Exp $ .\" .\" Copyright (c) 2014, 2015 Reyk Floeter .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 19 2015 $ +.Dd $Mdocdate: February 7 2015 $ .Dt HTTPD.CONF 5 .Os .Sh NAME diff --git a/httpd.h b/httpd.h index 24e1f9a..d2f6469 100644 --- a/httpd.h +++ b/httpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: httpd.h,v 1.73 2015/01/21 22:23:24 reyk Exp $ */ +/* $OpenBSD: httpd.h,v 1.75 2015/02/07 01:23:12 reyk Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter diff --git a/parse.y b/parse.y index 2f8fbcd..daf61c2 100644 --- a/parse.y +++ b/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.59 2015/01/29 08:52:52 reyk Exp $ */ +/* $OpenBSD: parse.y,v 1.61 2015/02/07 01:23:12 reyk Exp $ */ /* * Copyright (c) 2007 - 2015 Reyk Floeter @@ -1850,7 +1850,6 @@ server_inherit(struct server *src, const char *name, /* Copy the source server and assign a new Id */ memcpy(&dst->srv_conf, &src->srv_conf, sizeof(dst->srv_conf)); - if ((dst->srv_conf.tls_cert_file = strdup(src->srv_conf.tls_cert_file)) == NULL) fatal("out of memory"); @@ -1918,7 +1917,7 @@ server_inherit(struct server *src, const char *name, /* Copy all the locations of the source server */ TAILQ_FOREACH(s, conf->sc_servers, srv_entry) { if (!(s->srv_conf.flags & SRVFLAG_LOCATION && - s->srv_conf.id == src->srv_conf.id)) + s->srv_conf.parent_id == src->srv_conf.parent_id)) continue; if ((dstl = calloc(1, sizeof(*dstl))) == NULL) @@ -1928,7 +1927,8 @@ server_inherit(struct server *src, const char *name, strlcpy(dstl->srv_conf.name, name, sizeof(dstl->srv_conf.name)); /* Copy the new Id and listen address */ - dstl->srv_conf.id = dst->srv_conf.id; + dstl->srv_conf.id = ++last_server_id; + dstl->srv_conf.parent_id = dst->srv_conf.id; memcpy(&dstl->srv_conf.ss, &addr->ss, sizeof(dstl->srv_conf.ss)); dstl->srv_conf.port = addr->port; diff --git a/server.c b/server.c index 3c2632e..46f2e5c 100644 --- a/server.c +++ b/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.54 2015/01/21 22:21:05 reyk Exp $ */ +/* $OpenBSD: server.c,v 1.55 2015/02/07 01:23:12 reyk Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter diff --git a/server_http.c b/server_http.c index f7990b0..d5acb05 100644 --- a/server_http.c +++ b/server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.70 2015/02/05 10:47:53 reyk Exp $ */ +/* $OpenBSD: server_http.c,v 1.72 2015/02/07 01:23:12 reyk Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter -- cgit v1.2.3-54-g00ecf