Fixed seg fault if no acips are returned
FossilOrigin-Name: cfb0dab7d2487090fd4200c77aa318c76b3b413faea0a10e7668a118bd782bc3
This commit is contained in:
parent
d5add1d384
commit
6524b819b6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user