From b387591f323a0f283e538b3fc3797b975a8febbc Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Wed, 13 Dec 2017 00:58:51 +0000 Subject: [PATCH] MINOR: netscaler: respect syntax As per doc/coding-style.txt --- src/connection.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/connection.c b/src/connection.c index f8a50c3fe..8637895a3 100644 --- a/src/connection.c +++ b/src/connection.c @@ -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;