aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/fakeidentd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index b097d9980..b5b70f516 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -106,11 +106,8 @@ static void inetbind(void)
106 addr.sin_family = AF_INET; 106 addr.sin_family = AF_INET;
107 addr.sin_port = htons(port); 107 addr.sin_port = htons(port);
108 108
109 if (bind(s, (struct sockaddr *)&addr, len) < 0) /* bb_xbind? */ 109 bb_xbind(s, (struct sockaddr *)&addr, len);
110 bb_perror_msg_and_die("Cannot bind() port %i", IDENT_PORT); 110 bb_xlisten(s, 5);
111
112 if (listen(s, 5) < 0) /* bb_xlisten? */
113 bb_perror_msg_and_die("Cannot listen() on port %i", IDENT_PORT);
114 111
115 movefd(s, 0); 112 movefd(s, 0);
116} 113}