int match, struct ist info)
{
struct sample *smp;
- int is_empty;
+ int is_empty, check_type;
/* Follows these step to produce the info message:
* 1. if info field is already provided, copy it
goto comment;
}
+ check_type = (check->tcpcheck->rs->flags & TCPCHK_RULES_PROTO_CHK);
is_empty = (IS_HTX_SC(check->sc) ? htx_is_empty(htxbuf(&check->bi)) : !b_data(&check->bi));
if (is_empty) {
TRACE_ERROR("empty response", CHK_EV_RX_DATA|CHK_EV_RX_ERR, check);
}
if (check->type == PR_O2_TCPCHK_CHK &&
- (check->tcpcheck->rs->flags & TCPCHK_RULES_PROTO_CHK) != TCPCHK_RULES_TCP_CHK) {
+ check_type != TCPCHK_RULES_TCP_CHK && check_type !=TCPCHK_RULES_HTTP_CHK) {
goto comment;
}
break;
case TCPCHK_EXPECT_HTTP_HEADER:
chunk_appendf(msg, " (header pattern) at step %d", tcpcheck_get_step_id(check, rule));
+ break;
case TCPCHK_EXPECT_UNDEF:
/* Should never happen. */
return;