Segfault when accessing request attributes

baki at enternet.hu baki at enternet.hu
Thu Jun 28 14:37:09 CEST 2007


Hello!

I use Debian 4.0 with FreeRadius 1.1.3 and I am developing a custom module for the post-auth section.
When I want to access the request attributes (user name and password) I get a segmentation fault with this code:
VALUE-PAIR *request_pairs = request->packet->vp;

When I used gdb to debug the segfault I noticed that the request attributes are in request->proxy (and the reply attributes are in request->proxy_reply). I don't understand this because the preprocess module runs before my module and it uses request->packet->vps without any errors.

Please help me, because if I write my module using request->proxy and request->proxy_reply I get a segfault in an accounting module (running after my module) when it tries to access the request attributes in request->packet.

Thanks.

Best regards,
Baki




More information about the Freeradius-Users mailing list