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
baki@enternet.hu wrote:
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;
$ make distclean $ ./configure ... $ make
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.
This is a sign that your module was built using the wrong version of the server headers. Alan DeKok.
participants (2)
-
Alan DeKok -
bakiļ¼ enternet.hu