From d8a592a40158cbc7ab4d7eff858380050b336f2d Mon Sep 17 00:00:00 2001 From: Zakir Durumeric Date: Tue, 15 Oct 2013 10:22:23 -0400 Subject: [PATCH] use whitelist --- src/recv.c | 1 - src/zmap.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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) {