diff --git a/src/Linux/mod_os10.c b/src/Linux/mod_os10.c index 5dcfb8e5..5c20c2b2 100644 --- a/src/Linux/mod_os10.c +++ b/src/Linux/mod_os10.c @@ -382,10 +382,10 @@ extern "C" { // check that we already have the right MAC and ifIndex checkByMac(mod, adaptor, &mdata->poll.mac); checkByIndex(mod, adaptor, mdata->poll.ifIndex); - // clear poll structure for next interface phase - memset(&mdata->poll, 0, sizeof(mdata->poll)); } } + // clear poll structure for next interface phase + memset(&mdata->poll, 0, sizeof(mdata->poll)); } }