From: Marek Schimara Date: Wed, 15 Jun 2016 13:03:35 +0000 (+0200) Subject: src/rrd_daemon.c: fix Coverity CID#32412 Nesting level does not match indentation X-Git-Tag: v1.7.0~42^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe2638c6e518f8bc5f1ab592e26ec4b516769eb8;p=thirdparty%2Frrdtool-1.x.git src/rrd_daemon.c: fix Coverity CID#32412 Nesting level does not match indentation CWE-483 / https://cwe.mitre.org/data/definitions/483.html --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 9041a193..99774abd 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -3498,7 +3498,7 @@ static int open_listen_socket_network(const listen_socket_t *sock) /* {{{ */ #ifdef IPV6_V6ONLY /* Prevent EADDRINUSE bind errors on dual-stack configurations * with IPv4-mapped-on-IPv6 enabled */ - if (AF_INET6 == ai_ptr->ai_family) + if (AF_INET6 == ai_ptr->ai_family) { status = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one)); if (status != 0) { fprintf(stderr, "rrdcached: setsockopt(IPV6_V6ONLY) failed: %s\n", @@ -3507,6 +3507,7 @@ static int open_listen_socket_network(const listen_socket_t *sock) /* {{{ */ freeaddrinfo(ai_res); return (-1); } + } #endif /* IPV6_V6ONLY */ status = bind (fd, ai_ptr->ai_addr, ai_ptr->ai_addrlen);