aboutsummaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 8943b2e3b..3e4b42cfa 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,10 +1,9 @@
1/* $Id: telnetd.c,v 1.13 2004/09/14 17:24:58 bug1 Exp $ 1/* vi:set ts=4:*/
2 * 2/*
3 * Simple telnet server 3 * Simple telnet server
4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com) 4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
5 * 5 *
6 * This file is distributed under the Gnu Public License (GPL), 6 * Licensed under GPL, see file LICENSE in this tarball for details.
7 * please see the file LICENSE for further information.
8 * 7 *
9 * --------------------------------------------------------------------------- 8 * ---------------------------------------------------------------------------
10 * (C) Copyright 2000, Axis Communications AB, LUND, SWEDEN 9 * (C) Copyright 2000, Axis Communications AB, LUND, SWEDEN
@@ -446,10 +445,7 @@ telnetd_main(int argc, char **argv)
446 445
447 /* Grab a TCP socket. */ 446 /* Grab a TCP socket. */
448 447
449 master_fd = socket(SOCKET_TYPE, SOCK_STREAM, 0); 448 master_fd = bb_xsocket(SOCKET_TYPE, SOCK_STREAM, 0);
450 if (master_fd < 0) {
451 bb_perror_msg_and_die("socket");
452 }
453 (void)setsockopt(master_fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); 449 (void)setsockopt(master_fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
454 450
455 /* Set it to listen to specified port. */ 451 /* Set it to listen to specified port. */