diff --git a/nscd/hstcache.c b/nscd/hstcache.c index 702a958631..479c1bf803 100644 --- a/nscd/hstcache.c +++ b/nscd/hstcache.c @@ -318,7 +318,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); }