4 Mar
2016
4 Mar
'16
2:17 p.m.
On Mar 4, 2016, at 11:34 AM, Peter Lambrechtsen <peter@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.