Segmentation fault after migrating from 2.0.5 to 2.1.1

Alan DeKok aland at deployingradius.com
Wed Oct 29 20:39:46 CET 2008


Dmitry V. Krivenok wrote:
> gdb determined that error occurs in pairfind:
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb7ba4ac0 (LWP 9773)]
> 0xb7b360fa in osb_authorize (inst=0x8179e30, request=0x819c670) at
> rlm_osb.c:73
> 73        if(pairfind(request->packet->vps, PW_STATE))
> 
> I found that request->packet is NULL.

  If that's NULL, then your code is wrong.

> Is it correct request?
> How should I handle requests with packet field == NULL?

  It's impossible for the field to be NULL.

  Maybe you didn't re-build your module with 2.1.1.  The header files
*have* changed.

  Alan DeKok.



More information about the Freeradius-Devel mailing list