From 6524b819b6b5e98924726dd3c10fefd78effd238 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 28 Mar 2016 08:50:58 +0000 Subject: [PATCH] Fixed seg fault if no acips are returned FossilOrigin-Name: cfb0dab7d2487090fd4200c77aa318c76b3b413faea0a10e7668a118bd782bc3 --- src/wtp/discovery.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wtp/discovery.c b/src/wtp/discovery.c index b2759b45..13ef6683 100644 --- a/src/wtp/discovery.c +++ b/src/wtp/discovery.c @@ -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);