Reverse string concatenation for multiple attributes

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Dec 14 17:00:32 CET 2015


> On 14 Dec 2015, at 05:58, Franks Andy (IT Technical Architecture Manager) <Andy.Franks at sath.nhs.uk> wrote:
> 
> Hi,
>  Just tried this and still no go..
> 
> rlm_sql (sql_SP_rsh-radius-lant): Reserved connection (0)
> (0)         Executing select query: call get_active_sessions_for_switchport ('192.168.105.86', '2', 864000)

mysql_num_fields probably doesn't like a NULL result struct *sigh*.

So you have a result function which returns a NULL pointer to indicated a result set with no rows, and then a function to get the number of fields in a result set, which SEGVs (instead of returning zero) if you pass it in that NULL pointer.  Great API design that :/

Anyway pushed a fix.

-Arran
-------------- 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/20151214/e7813ae0/attachment-0001.sig>


More information about the Freeradius-Users mailing list