diff --git a/src/net_helper.c b/src/net_helper.c index 19cea3a6d..c2cbde5a6 100644 --- a/src/net_helper.c +++ b/src/net_helper.c @@ -706,7 +706,7 @@ static int sample_conv_ip_fp(const struct arg *arg_p, struct sample *smp, void * if (smp->data.u.str.data < 40) return 0; - pktlen = read_n16(smp->data.u.str.area + 4); + pktlen = 40 + read_n16(smp->data.u.str.area + 4); // extension/next proto => ext present if !tcp && !udp ipext = smp->data.u.str.area[6]; ipext = ipext != 6 && ipext != 17;