seg fault when interface does not exist

Kel Modderman kelmo
Sun Dec 17 13:15:41 PST 2006


wpa_supplicant currently crashes hard if the interface to be used is 
non-existant (or a typo is made).

$ sudo wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext -ifoo0
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIFFLAGS]: No such device
Could not set interface 'foo0' UP
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
Segmentation fault

Wouldn't it be nicer if it exited gracefully (with a hint) before trying to 
configure the non-existant interface?

Thanks, Kel.

More information about the Hostap mailing list