[PATCH] radius: sanity check for null pointer segfault

Eduardo Abinader eduardoabinader at gmail.com
Thu Aug 18 00:57:47 PDT 2016


I can provide logs later, but summarizing:

1) compiled with this defconfig: http://pastebin.com/7v5Zh4Ba

2) started a bss with no radius, just normal WPA-PSK

3) sent ctrl_iface mib command

result: crash.

On Thu, Aug 18, 2016 at 9:38 AM, Jouni Malinen <j at w1.fi> wrote:
> On Wed, Aug 17, 2016 at 07:29:39PM +0200, Eduardo Abinader wrote:
>> When no radius is configured, mib command is segfaulting
>> hostapd.
>
> Could you please provide an example configuration and hostapd debug log
> showing this? I'm not sure how it would be possible to get into
> radius_client_get_mib() with radius == NULL since this parameter comes
> from hapd->radius and that pointer is required to be non-NULL when a BSS
> is operational. This is the case regardless of whether there are
> configured RADIUS servers.
>
> --
> Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list