af-packet: check out_iface not NULL

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

@ -287,8 +287,12 @@ static void *ParseAFPConfig(const char *iface)
} }
if (ConfGetChildValueWithDefault(if_root, if_default, "copy-iface", &out_iface) == 1) { if (ConfGetChildValueWithDefault(if_root, if_default, "copy-iface", &out_iface) == 1) {
if (strlen(out_iface) > 0) { if (out_iface != NULL) {
aconf->out_iface = out_iface; if (strlen(out_iface) > 0) {
aconf->out_iface = out_iface;
}
} else {
SCLogWarning("copy-iface corresponding to %s interface cannot be NULL", iface);
} }
} }

Loading…
Cancel
Save