Fixed seg fault if no acips are returned

FossilOrigin-Name: cfb0dab7d2487090fd4200c77aa318c76b3b413faea0a10e7668a118bd782bc3
This commit is contained in:
7u83@mail.ru 2016-03-28 08:50:58 +00:00
parent d5add1d384
commit 6524b819b6
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ cw_aciplist_t cw_select_ac(struct conn *conn, mbag_t discs)
cw_aciplist_t acips =
mbag_get_mavl(ac, CW_ITEM_CAPWAP_CONTROL_IP_ADDRESS_LIST);
if (!acips)
continue;
/* for each IP from the current AC add it to the result list
* and give it the priority whe have determined */
DEFINE_AVLITER(i2, acips);