summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-11-30 21:10:29 +0000
committerLaurent Bercot <ska@appnovation.com>2023-11-30 21:10:29 +0000
commit691c9878f41d6646af38f417b23dfc72644a8c96 (patch)
treebfceb8f394e979489d7c44b3cc41f80e122924f5 /src
parent73bb25bd566f9b5010ce8331a0f059f666aca112 (diff)
downloadtipidee-691c9878f41d6646af38f417b23dfc72644a8c96.tar.xz
Don't segfault on no PROTO!
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/tipideed/tipideed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c
index 1c07cf3..0f5d44c 100644
--- a/src/tipideed/tipideed.c
+++ b/src/tipideed/tipideed.c
@@ -66,9 +66,9 @@ static inline void prep_env (size_t *remoteip, size_t *remotehost)
if (x) stralloc_catb(&g.sa, sslvars, sizeof(sslvars)) ;
g.ssl = !!x ;
x = getenv(basevars) ;
+ if (!x) strerr_dienotset(100, "PROTO") ;
protolen = strlen(x) ;
if (protolen > 1000) strerr_dieinvalid(100, "PROTO") ;
- if (!x) strerr_dienotset(100, "PROTO") ;
{
size_t m ;
ip46 ip ;