From 901905e0cf0f5f141461df7ea199711ea951c919 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Wed, 5 Jan 2022 18:58:01 +0000 Subject: bail out of client_read if we've already decide what to do libevent2 can still somehowe call client_read even in code paths that never enable reading from the evbuffer. Can't reproduce on the libevent in base on OpenBSD. It's a bit ugly, but it's a small workaround for something that otherwise *always* make gmid crash when linked against libevent2. (client_read works under the assumption that c->host != NULL, matched_proxy crashes otherwise.) --- regress/tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'regress/tests.sh') diff --git a/regress/tests.sh b/regress/tests.sh index 398c458..9fae42d 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -362,3 +362,11 @@ test_proxy_with_certs() { fetch / check_reply "60 client certificate required" || return 1 } + +test_unknown_host() { + setup_simple_test '' '' + + ggflags="-N -H foobar" + fetch / + check_reply '59 Wrong/malformed host or missing SNI' +} -- cgit v1.2.3