diff --git a/src/Linux/mod_sonic.c b/src/Linux/mod_sonic.c index b109537..f722107 100644 --- a/src/Linux/mod_sonic.c +++ b/src/Linux/mod_sonic.c @@ -1576,6 +1576,9 @@ extern "C" { if(mdata->sflow_agent) { snprintf(cfgLine, EV_MAX_EVT_DATALEN, "agent=%s", mdata->sflow_agent); EVEventTx(mod, mdata->configEvent, cfgLine, my_strlen(cfgLine)); + } else { + snprintf(cfgLine, EV_MAX_EVT_DATALEN, "agent=%s", ""); + EVEventTx(mod, mdata->configEvent, cfgLine, my_strlen(cfgLine)); } snprintf(cfgLine, EV_MAX_EVT_DATALEN, "polling=%u", mdata->sflow_polling); EVEventTx(mod, mdata->configEvent, cfgLine, my_strlen(cfgLine));