rlm_sqlippool segfaults on wrong/missing rlm_sql instance

Stephan Jaeger stephan.jaeger at ewetel.de
Tue Jul 31 11:33:31 CEST 2007


Hi,

rlm_sqlippool segfaults if you specify a non existing sql module
instance.

I modified it a bit to behave like rlm_sqlhpwippool, it now throws an
error if the specified module instance does not exist:

Tue Jul 31 11:23:16 2007 : Error: ERROR: Cannot find a configuration
entry for module "foobar". 
Tue Jul 31 11:23:16 2007 : Error: sqlippool_instantiate: failed to find
sql instance named foobar

And also throws an error if the specified module is not an instance of
rlm_sql:

Tue Jul 31 11:28:24 2007 : Error: sqlippool_instantiate: given instance
(expr) is not an instance of the rlm_sql module


Regards

Stephan Jaeger
-- 
Stephan Jaeger <stephan.jaeger at ewetel.de>
EWE TEL GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlm_sqlippool.diff
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20070731/9517734c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20070731/9517734c/attachment.pgp>


More information about the Freeradius-Devel mailing list