aboutsummaryrefslogtreecommitdiff
path: root/networking/dnsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/dnsd.c')
-rw-r--r--networking/dnsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c
index a815860ab..9c5193820 100644
--- a/networking/dnsd.c
+++ b/networking/dnsd.c
@@ -1,3 +1,4 @@
1/* vi: set sw=4 ts=4: */
1/* 2/*
2 * Mini DNS server implementation for busybox 3 * Mini DNS server implementation for busybox
3 * 4 *
@@ -204,8 +205,7 @@ listen_socket(char *iface_addr, int listen_port)
204 char msg[100]; 205 char msg[100];
205 int s; 206 int s;
206 int yes = 1; 207 int yes = 1;
207 if ((s = socket(PF_INET, SOCK_DGRAM, 0)) < 0) 208 s = bb_xsocket(PF_INET, SOCK_DGRAM, 0);
208 bb_perror_msg_and_die("socket() failed");
209#ifdef SO_REUSEADDR 209#ifdef SO_REUSEADDR
210 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&yes, sizeof(yes)) < 0) 210 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&yes, sizeof(yes)) < 0)
211 bb_perror_msg_and_die("setsockopt() failed"); 211 bb_perror_msg_and_die("setsockopt() failed");