When reading the NetFlow engine type and ID from the config database
we weren't dereferencing the variables.
dpif_get_netflow_ids(br->dpif, &opts.engine_type, &opts.engine_id);
if (nf_cfg->engine_type) {
- opts.engine_type = nf_cfg->engine_type;
+ opts.engine_type = *nf_cfg->engine_type;
}
if (nf_cfg->engine_id) {
- opts.engine_id = nf_cfg->engine_id;
+ opts.engine_id = *nf_cfg->engine_id;
}
opts.active_timeout = nf_cfg->active_timeout;