Segment fault

Jouni Malinen jkmaline at cc.hut.fi
Wed May 7 09:41:31 EDT 2003


On Wed, May 07, 2003 at 06:06:53PM +0900, ?vBXXZcX0-? wrote:

> Lastest CVS tree.. generate Segmentation fault...because,
> at the first init time..

Not for me.. Could you please run in in debugger or use gdb to produce
backstrace from core dump?

> static int
> radius_change_server(hostapd *hapd, struct hostapd_radius_server *nserv,
>                                      struct hostapd_radius_server *oserv,
>                                                      int sock, int auth)
> 
> called by hostapd.c and oserv is NULL but in side the function the oserv-> XXXXX access cause 
> segment fault...

That function should not dereference oserv if it is NULL..

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list