Index is not an integer (segfault)

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Dec 17 15:53:56 CET 2015


> On 17 Dec 2015, at 09:20, Franks Andy (IT Technical Architecture Manager) <Andy.Franks at sath.nhs.uk> wrote:
> 
> Marvellous - thanks.
> 
> Also, just a bit of feedback from the previous segfault relating to zero row return from a sql map entry, it now doesn't segfault, but says :
> 
> ERROR: Failed retrieving field names: server error
> 
> Instead. Should this be an error? I could do a reject=1 handling thing, but I'm not sure that nothing coming back from a sql query should cause a rejection by default (or should it?!)

Probably not.  I've added a check for empty result sets, so it'll now return noop.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20151217/b90f7d96/attachment.sig>


More information about the Freeradius-Users mailing list