aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-15 06:41:13 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-15 06:41:13 +0100
commitf57d2906da4b8731bdc55816a1cde6eb925fcf78 (patch)
tree6ef8e386eb530ecd0499f75523b3bef590ffd271
parente7d70a5d2fdb0698a7b776ba6d27acb9f60ef1a8 (diff)
downloaddyndhcpd-f57d2906da4b8731bdc55816a1cde6eb925fcf78.tar.gz
dyndhcpd-f57d2906da4b8731bdc55816a1cde6eb925fcf78.tar.zst
do not fail but goto out
-rw-r--r--dyndhcpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dyndhcpd.c b/dyndhcpd.c
index f65f07a..cadf96b 100644
--- a/dyndhcpd.c
+++ b/dyndhcpd.c
@@ -156,7 +156,7 @@ int main(int argc, char ** argv) {
if (ntohl(s_broadcast.s_addr) - ntohl(s_netaddress.s_addr) < 2) {
fprintf(stderr, "We do not have addresses to serve, need a netmask with 30 bit minimum.\n");
- return EXIT_FAILURE;
+ goto out;
}
s_minhost.s_addr = htonl(ntohl(s_netaddress.s_addr) + 1);