aboutsummaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-10-05 15:10:44 +0000
committerOmar Polo <op@omarpolo.com>2022-10-05 15:10:44 +0000
commit534afd0ddcba7c3d2f8478e89db026010c6190c5 (patch)
treeb2a6601b8a0fe1ba0128c34df1b9df374869ecf4 /proxy.c
parent4ceb570910de41133b2771cff29cbb78f37fea30 (diff)
make the various strings in the config fixed-length
will help in future restructuring to have fixed-size objects.
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.c b/proxy.c
index 532517b..3c83a32 100644
--- a/proxy.c
+++ b/proxy.c
@@ -326,7 +326,7 @@ proxy_setup_tls(struct client *c)
if (tls_configure(c->proxyctx, conf) == -1)
goto err;
- if ((hn = p->sni) == NULL)
+ if (*(hn = p->sni) == '\0')
hn = p->host;
if (tls_connect_socket(c->proxyctx, c->pfd, hn) == -1)
goto err;