]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Clean up if interface setup fails
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 28 May 2014 09:57:12 +0000 (11:57 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 31 May 2014 12:53:56 +0000 (15:53 +0300)
commitac1a2240922f0815533855c72d2c252223785897
tree11dae57cdf5b835e8a129e3a1a5ec3b7f64dc3cc
parent81c4fca10047076fc939b8d480f8d499b9735a48
hostapd: Clean up if interface setup fails

If for some reason interface setup fails mid-way when setting up
multi-BSS AP it was possible to get segmentation fault because driver
was not properly cleaned up.

One possible trigger, when using nl80211 driver, was udev renaming an
interface created by hostapd causing, e.g., linux_set_iface_flags() to
fail.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
src/ap/hostapd.c