BUG/MEDIUM: servers: fix typo "src" instead of "srv"

When copying the settings for all servers when using server templates,
fix a typo, or we would never copy the length of the ALPN to be used for
checks.

This should be backported to 1.9.
This commit is contained in:
Ilya Shipitsin 2019-04-30 21:21:28 +05:00 committed by Olivier Houchard
parent 02f3cf19ed
commit 0c50b1ecbb

View file

@ -1639,7 +1639,7 @@ static void srv_settings_cpy(struct server *srv, struct server *src, int srv_tmp
srv->check.port = src->check.port;
srv->check.sni = src->check.sni;
srv->check.alpn_str = src->check.alpn_str;
srv->check.alpn_len = srv->check.alpn_len;
srv->check.alpn_len = src->check.alpn_len;
/* Note: 'flags' field has potentially been already initialized. */
srv->flags |= src->flags;
srv->do_check = src->do_check;