diff options
author | Omar Polo <op@omarpolo.com> | 2022-10-05 15:10:44 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-10-05 15:10:44 +0000 |
commit | 534afd0ddcba7c3d2f8478e89db026010c6190c5 (patch) | |
tree | b2a6601b8a0fe1ba0128c34df1b9df374869ecf4 /proxy.c | |
parent | 4ceb570910de41133b2771cff29cbb78f37fea30 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |