diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-11-30 21:10:29 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-11-30 21:10:29 +0000 |
commit | 691c9878f41d6646af38f417b23dfc72644a8c96 (patch) | |
tree | bfceb8f394e979489d7c44b3cc41f80e122924f5 /src/tipideed/tipideed.c | |
parent | 73bb25bd566f9b5010ce8331a0f059f666aca112 (diff) | |
download | tipidee-691c9878f41d6646af38f417b23dfc72644a8c96.tar.xz |
Don't segfault on no PROTO!
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/tipideed.c')
-rw-r--r-- | src/tipideed/tipideed.c | 2 |
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 ; |