Segfault when accessing request attributes
Alan DeKok
aland at deployingradius.com
Thu Jun 28 15:41:39 CEST 2007
baki at 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.
More information about the Freeradius-Users
mailing list