summaryrefslogtreecommitdiff
path: root/src/stls/stls_drop.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 00:16:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 00:16:06 +0000
commit47cbbb1619ace4013856843ef8f7d68279c74faa (patch)
tree351769a8bb3d202050c2f21a282cc0db26a58de8 /src/stls/stls_drop.c
parentfb76faf56aca9b79648d776896a4a4fae7c978cf (diff)
downloads6-networking-47cbbb1619ace4013856843ef8f7d68279c74faa.tar.xz
Add documentation, fix tiny privdrop bug
Diffstat (limited to 'src/stls/stls_drop.c')
-rw-r--r--src/stls/stls_drop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stls/stls_drop.c b/src/stls/stls_drop.c
index d1e6831..7fc1bc5 100644
--- a/src/stls/stls_drop.c
+++ b/src/stls/stls_drop.c
@@ -12,8 +12,8 @@ void stls_drop (void)
{
if (!getuid())
{
- uid_t uid ;
- gid_t gid ;
+ uid_t uid = 0 ;
+ gid_t gid = 0 ;
char const *x = getenv("TLS_UID") ;
if (x && !uid0_scan(x, &uid)) strerr_dieinvalid(100, "TLS_UID") ;
x = getenv("TLS_GID") ;