On Monday 2012-06-04 15:09, Joe Perches wrote: >On Mon, 2012-06-04 at 15:06 +0200, Jan Engelhardt wrote: >> On Monday 2012-06-04 14:21, pablo@xxxxxxxxxxxxx wrote: > >> >@@ -218,13 +221,13 @@ int __nf_ct_try_assign_helper(struct nf_conn *ct, struct nf_conn *tmpl, >> > } >> > >> > if (help == NULL) { >> >- help = nf_ct_helper_ext_add(ct, flags); >> >+ help = nf_ct_helper_ext_add(ct, helper, flags); >> > if (help == NULL) { >> > ret = -ENOMEM; >> > goto out; >> > } >> > } else { >> >- memset(&help->help, 0, sizeof(help->help)); >> >+ memset(&help->data, 0, sizeof(helper->data_len)); >> > } >> >> memset(help->data, 0, sizeof(helper->data_len)); > > memset(help->data, 0, helper->data_len); I knew this looked suspect. With so many "sizeof"s, this spot was starting to look like a "mine is bigger" competition. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html