af-packet: check out_iface not NULL

pull/9370/head
Shivani Bhardwaj 2 years ago committed by Shivani Bhardwaj
parent c5d83d081e
commit 3d73538a5b

@ -287,9 +287,13 @@ static void *ParseAFPConfig(const char *iface)
}
if (ConfGetChildValueWithDefault(if_root, if_default, "copy-iface", &out_iface) == 1) {
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);
}
}
if (ConfGetChildValueBoolWithDefault(if_root, if_default, "use-mmap", (int *)&boolval) == 1) {

Loading…
Cancel
Save