aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-08-02 14:52:06 -0700
committerGuy Harris <guy@alum.mit.edu>2016-08-02 14:52:06 -0700
commite4178a5524b25b7d9f4b4323aa97cb3ed2647df6 (patch)
tree4a242c26e8b77c94900836c529d7a77276efdccc
parent403692f183b87603e28c13c36376532866010e78 (diff)
The private structure is initialized to zero; no need to set rfmon_selfstart.
pcap_create_common() zeroes out the private data, so we don't need to set rfmon_selfstart (we already don't set other members).
-rw-r--r--pcap-win32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pcap-win32.c b/pcap-win32.c
index 470f5fdf..221c5a2a 100644
--- a/pcap-win32.c
+++ b/pcap-win32.c
@@ -1144,6 +1144,7 @@ pcap_t *
pcap_create_interface(const char *device _U_, char *ebuf)
{
pcap_t *p;
+
#ifdef HAVE_REMOTE
p = pcap_create_common(ebuf, sizeof(struct pcap_win) + sizeof(struct pcap_md));
#else
@@ -1152,8 +1153,6 @@ pcap_create_interface(const char *device _U_, char *ebuf)
if (p == NULL)
return (NULL);
- struct pcap_win *pw = p->priv;
- pw->rfmon_selfstart = 0;
p->activate_op = pcap_activate_win32;
p->can_set_rfmon_op = pcap_can_set_rfmon_win32;
return (p);