summaryrefslogtreecommitdiff
path: root/include/users.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/users.h')
-rw-r--r--include/users.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/users.h b/include/users.h
index f1184ea24..c81ad988b 100644
--- a/include/users.h
+++ b/include/users.h
@@ -75,7 +75,10 @@ class UserResolver : public Resolver
userrec* bound_user;
int bound_fd;
public:
- UserResolver(userrec* user, std::string to_resolve, bool forward) : Resolver(to_resolve, forward), bound_user(user) { };
+ UserResolver(userrec* user, std::string to_resolve, bool forward) : Resolver(to_resolve, forward), bound_user(user)
+ {
+ this->bound_fd = user->fd;
+ }
void OnLookupComplete(const std::string &result);
void OnError(ResolverError e);