Skip to content

Commit 773f31f

Browse files
committed
segment fault
1 parent 851215f commit 773f31f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uinet/lib/ff_config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ port_cfg_handler(struct ff_config *cfg, const char *section,
201201
fprintf(stderr, "parse_port_list malloc failed\n");
202202
return 0;
203203
}
204+
memset(cfg->portid_list,0,sizeof(uint16_t)*MAX_ETHPORTS);
205+
204206
cfg->max_portid = cfg->portid_list[MAX_ETHPORTS-1];
205207
// initialize lcore list and nb_lcores
206208
int i;

0 commit comments

Comments
 (0)