aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'wlantest/monitor.c')
-rw-r--r--wlantest/monitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wlantest/monitor.c b/wlantest/monitor.c
index 902e6d9..afcc380 100644
--- a/wlantest/monitor.c
+++ b/wlantest/monitor.c
@@ -27,8 +27,12 @@ static void monitor_read(int sock, void *eloop_ctx, void *sock_ctx)
return;
}
+ clear_notes(wt);
+ os_free(wt->decrypted);
+ wt->decrypted = NULL;
write_pcap_captured(wt, buf, len);
wlantest_process(wt, buf, len);
+ write_pcapng_captured(wt, buf, len);
}