]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: netscaler: respect syntax
authorBertrand Jacquin <jacquinb@amazon.com>
Wed, 13 Dec 2017 00:58:51 +0000 (00:58 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Dec 2017 06:04:07 +0000 (07:04 +0100)
As per doc/coding-style.txt

src/connection.c

index f8a50c3fe87d6273695d7e62f80bd74c8af19869..8637895a355f4e3486a9325d685166bcc975a619 100644 (file)
@@ -770,11 +770,13 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
                        /* Fail if buffer length is not large enough to contain
                         * CIP magic, CIP length, IPv4 header */
                        goto missing;
-               } else if (hdr_ip4->ip_p != IPPROTO_TCP) {
+               }
+               else if (hdr_ip4->ip_p != IPPROTO_TCP) {
                        /* The protocol does not include a TCP header */
                        conn->err_code = CO_ER_CIP_BAD_PROTO;
                        goto fail;
-               } else if (trash.len < (28 + ntohs(hdr_ip4->ip_len))) {
+               }
+               else if (trash.len < (28 + ntohs(hdr_ip4->ip_len))) {
                        /* Fail if buffer length is not large enough to contain
                         * CIP magic, CIP length, IPv4 header, TCP header */
                        goto missing;
@@ -803,11 +805,13 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
                        /* Fail if buffer length is not large enough to contain
                         * CIP magic, CIP length, IPv6 header */
                        goto missing;
-               } else if (hdr_ip6->ip6_nxt != IPPROTO_TCP) {
+               }
+               else if (hdr_ip6->ip6_nxt != IPPROTO_TCP) {
                        /* The protocol does not include a TCP header */
                        conn->err_code = CO_ER_CIP_BAD_PROTO;
                        goto fail;
-               } else if (trash.len < 48) {
+               }
+               else if (trash.len < 48) {
                        /* Fail if buffer length is not large enough to contain
                         * CIP magic, CIP length, IPv6 header, TCP header */
                        goto missing;