cip_len was meant to be the length of the data encapsulated in the CIP
protocol, the size the IP and TCP header
int conn_recv_netscaler_cip(struct connection *conn, int flag)
{
char *line;
- uint32_t cip_len;
+ uint32_t hdr_len;
uint8_t ip_v;
/* we might have been called just after an asynchronous shutr */
goto missing;
line = trash.str;
- cip_len = ntohl(*(uint32_t *)(line+4));
+ hdr_len = ntohl(*(uint32_t *)(line+4));
/* Decode a possible NetScaler Client IP request, fail early if
* it does not match */
goto fail;
}
- line += cip_len;
+ line += hdr_len;
trash.len = line - trash.str;
/* remove the NetScaler Client IP header from the request. For this