This fixes a segfault when RAW_MAC key is NULL in MAC2STR plugin. Signed-off-by: Pierre Chifflier <chifflier@xxxxxx> --- filter/ulogd_filter_HWHDR.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/filter/ulogd_filter_HWHDR.c b/filter/ulogd_filter_HWHDR.c index cecd3e2..327b5fe 100644 --- a/filter/ulogd_filter_HWHDR.c +++ b/filter/ulogd_filter_HWHDR.c @@ -174,7 +174,7 @@ static int interp_mac2str(struct ulogd_pluginstance *pi) return fret; } - if (!pp_is_valid(inp, KEY_RAW_MAC)) { + if (pp_is_valid(inp, KEY_RAW_MAC)) { if (GET_VALUE(inp, KEY_RAW_MAC_ADDRLEN).ui16 == ETH_ALEN) { ret[KEY_MAC_TYPE].u.value.ui16 = ARPHRD_ETHER; ret[KEY_MAC_TYPE].flags |= ULOGD_RETF_VALID; -- 1.5.6.5 -- 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