diff --git a/src/recv.c b/src/recv.c index 6dff8c6..982d0e0 100644 --- a/src/recv.c +++ b/src/recv.c @@ -133,7 +133,6 @@ void packet_cb(u_char __attribute__((__unused__)) *user, if (!evaluate_expression(zconf.filter.expression, fs)) { goto cleanup; } - o = translate_fieldset(fs, &zconf.fsconf.translation); if (zconf.output_module && zconf.output_module->process_ip) { zconf.output_module->process_ip(o); diff --git a/src/zmap.c b/src/zmap.c index 7cf1079..136de99 100644 --- a/src/zmap.c +++ b/src/zmap.c @@ -555,6 +555,7 @@ int main(int argc, char *argv[]) " trying to scan local networks, you can change the default blacklist by " "editing the default ZMap configuration at /etc/zmap/zmap.conf."); } + SET_IF_GIVEN(zconf.whitelist_filename, whitelist_file); if (zconf.probe_module->port_args) { if (args.source_port_given) {