19 Jan
2007
19 Jan
'07
3:49 a.m.
Mike wrote:
You are exactly correct. Good catch. For mailing list archives, the simplest patch I came up with:
/* copy the first 20 bytes of the radius header. this size is static * per RFC. */ radhead->rad_length = htons(radhead->rad_length); memcpy(packet,(char *)radhead,20); radhead->rad_length = ntohs(radhead->rad_length);
rad_length is used elsewhere, so this is done to avoid breaking anything else.
Thanks for your help! (I wonder how this always worked for xtradius from the same machine?)
xtradius is probably less careful about checking the contents of the RADIUS packet. :) Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog