pairfind segmentation fault
Juan Pablo L.
jpablolorenzetti at hotmail.com
Thu Jun 23 03:28:54 CEST 2011
Hi, i m writing a module2 for freeradius 2.1.10 on linux 2.6.18-194.el5PAE.
this is the code:
vp = pairfind(request->packet->vps,PW_USER_NAME);
DEBUG("Found username = %s",vp->data.strvalue);
// create and add the cleartext-password
vp_clear_password = pairmake("Cleartext-password","smart",T_OP_SET);
pairadd(&request->config_items, vp_clear_password);
// create and add the callback-id
vp = pairmake("callback-id","0702005010701059",T_OP_SET);
pairadd(&request->reply->vps,vp);
but the pairfind is giving segmentation fault:
Program received signal SIGSEGV, Segmentation fault.
0x00b2879b in authorize (instance=0x8184460, request=0x81bbc68) at ../main.c:135
135 vp = pairfind(request->packet->vps,PW_USER_NAME);
I have no idea what the problem is.
What is the different between pairmake and radius_paircreate ?
when am i supposed to use pairfree ?
please let me know what the problem is.
thanks!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110623/a2836a90/attachment.html>
More information about the Freeradius-Users
mailing list