Message ID | 1386927156-3973-1-git-send-email-marek.kwaczynski@tieto.com |
---|---|
State | Accepted |
Headers | show |
On Fri, Dec 13, 2013 at 10:32:36AM +0100, Marek Kwaczynski wrote: > If more BSS networks are added in config file than are > supported by the driver, segmantation fault can appear. > For this case clean interface_added flag is needed when > adding new BSS failed. Thanks, applied.
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 6fe2956..a436c2a 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -667,6 +667,7 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first) NULL, first == -1)) { wpa_printf(MSG_ERROR, "Failed to add BSS (BSSID=" MACSTR ")", MAC2STR(hapd->own_addr)); + hapd->interface_added = 0; return -1; } }