segfault in master 3.0.x checking for empty realm

Alan DeKok aland at deployingradius.com
Fri Mar 4 20:17:21 CET 2016


On Mar 4, 2016, at 11:34 AM, Peter Lambrechtsen <peter at crypt.co.nz> wrote:
> 
> Ran into an interesting issue with my realm code that should have just
> given me a reject rather than a segfault.
> 
> In my default site I have added to the end the realm:
> 
> realm "~.*$" {
> }

  You don't need that.  The DEFAULT realm already does that.

> So that suffix matches every realm as I don't have control over the realm
> names and need to perform lookups in the database on the realm.
> 
> But if I then try and run suffix with an empty realm and do if check to see
> if it's not a particular realm I get a segfault.

  I've pushed a fix.

  Alan DeKok.



More information about the Freeradius-Users mailing list