Merge branch 'bugfix/dhcp_server_max_limit' into 'master'

dhcp/dhcpserver Fix max station limit check in dhcp server

See merge request idf/esp-idf!2298
This commit is contained in:
Jiang Jiang Jian 2018-05-11 15:50:38 +08:00
commit 41228c83c7

View file

@ -1247,7 +1247,7 @@ void dhcps_coarse_tmr(void)
}
}
if (num_dhcps_pool >= MAX_STATION_NUM) {
if (num_dhcps_pool > MAX_STATION_NUM) {
kill_oldest_dhcps_pool();
}
}