1 May 2006 07:50
Re: Null pointer deref
Daniel O'Connor <darius <at> dons.net.au>
2006-05-01 05:50:16 GMT
2006-05-01 05:50:16 GMT
On Monday 01 May 2006 12:45, Alan DeKok wrote: > "Daniel O'Connor" <darius <at> dons.net.au> wrote: > > The strcmp's around lines 1630 and 1659 can be done on a NULL pointer (eg > > mainconfig.do_lower_user) which causes a crash. > > I presume you mean in src/main/radiusd.c ? Whoops, yes, sorry :) > I'm curious as to how a NULL pointer got into those entries in the > "mainconfig" data structure. The server is set up so that if there's > no entry for those configs in radiusd.conf, then a default value of > "no" is used. See src/main/mainconfig.c. Yes, I was pretty suprised too :( > I've never seen this bug before, so my first guess is that you're > not running a stock server, and that the changes don't initialize > those entries. I built the server from the ports tree in FreeBSD. I also tried the OpenWRT package (as the end goal is for WPA auth) and it seems to have exactly the same problem (well, it segfaults with the same config file). There are a few patches in the FreeBSD port but none affect that code. I put a watch on mainconfig.do_lower_user and it doesn't get touched.. Hmm.. digs a bit further.. It appears that in read_radius_conf_file conf_read returns NULL so the cf_section_parse call is never made.(Continue reading)
RSS Feed