Re: Segfault when accessing request attributes



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.




This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.