From 70c3403c6fbaf8f4f0a37db8a5ad6db00de9559c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 11 Jul 2018 18:06:00 +0000 Subject: [PATCH] Only drop privileges after we've bound to port --- lewdfingerd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lewdfingerd.c b/lewdfingerd.c index f6c1b87..2ffce40 100644 --- a/lewdfingerd.c +++ b/lewdfingerd.c @@ -197,8 +197,8 @@ void handle_connection(int sock) { } int main(void) { - drop_privileges(); setup_listen(); + drop_privileges(); for(;;) { int amount_ready = poll(listens, num_listens, -1);