summaryrefslogtreecommitdiffstats
path: root/src/astmanproxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/astmanproxy.c')
-rw-r--r--src/astmanproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/astmanproxy.c b/src/astmanproxy.c
index 3c976e6..cc86859 100644
--- a/src/astmanproxy.c
+++ b/src/astmanproxy.c
@@ -576,7 +576,7 @@ static void *accept_thread()
memcpy(&s->sin, &sin, sizeof(sin));
/* For safety, make sure socket is non-blocking */
- flags = fcntl(as, F_GETFL);
+ flags = fcntl(get_real_fd(as), F_GETFL);
fcntl(get_real_fd(as), F_SETFL, flags | O_NONBLOCK);
pthread_mutex_init(&s->lock, NULL);