about summary refs log tree commit diff
path: root/nscd/hstcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'nscd/hstcache.c')
-rw-r--r--nscd/hstcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/hstcache.c b/nscd/hstcache.c
index 253b76c65d..31afbdddda 100644
--- a/nscd/hstcache.c
+++ b/nscd/hstcache.c
@@ -315,7 +315,7 @@ addhstbyname (struct database *db, int fd, request_header *req,
     }
 
   if (secure[hstdb])
-    seteuid (uid);
+    seteuid (oldeuid);
 
   cache_addhst (db, fd, req, key, hst, uid);
 }