diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index b45b0dad7e..fff1bd45b9 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -287,8 +287,12 @@ static void *ParseAFPConfig(const char *iface) } if (ConfGetChildValueWithDefault(if_root, if_default, "copy-iface", &out_iface) == 1) { - if (strlen(out_iface) > 0) { - aconf->out_iface = out_iface; + if (out_iface != NULL) { + if (strlen(out_iface) > 0) { + aconf->out_iface = out_iface; + } + } else { + SCLogWarning("copy-iface corresponding to %s interface cannot be NULL", iface); } }