mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-27 03:35:38 +00:00
bridgeif: fix that max_fdb_static_entries was used to init dynamic FDB
This commit is contained in:
parent
2a30fedbea
commit
77df9ccd5a
@ -627,7 +627,7 @@ bridgeif_init(struct netif *netif)
|
||||
br->fdbs = (bridgeif_fdb_static_entry_t*)(((u8_t*)(br + 1)) + (init_data->max_ports*sizeof(bridgeif_port_t)));
|
||||
|
||||
br->max_fdbd_entries = init_data->max_fdb_dynamic_entries;
|
||||
br->fdbd = bridgeif_fdb_init(init_data->max_fdb_static_entries);
|
||||
br->fdbd = bridgeif_fdb_init(init_data->max_fdb_dynamic_entries);
|
||||
if (br->fdbd == NULL) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("bridgeif_init: out of memory in fdb_init\n"));
|
||||
mem_free(br);
|
||||
|
Loading…
x
Reference in New Issue
Block a user