Patch to radius.c

Jake Roersma jaker at tsunami.triton.net
Mon Aug 26 23:56:30 UTC 2002


For some reason when I upgraded to INN-2.3.3 from 2.3.2 radius was
broken. Anyway it seems the code was changed to retry 3 times but there
was a problem because done never was set, leaving it equal to some
memory space somewhere, hence never running the while loop a few lines
down.. Anyway it works with this patch:

--- radius.c    Mon May  6 02:02:07 2002
+++ ../../inn-2.3.3-changed/authprogs/radius.c  Mon Aug 26 19:47:48 2002
@@ -163,7 +163,7 @@
     struct sockaddr_in sinl, sinr;
     int sock;
     struct hostent *hent;
-    int done;
+    int done = 0;
     int ret;
     int reqlen;
     int passlen;


-- 
Jake Roersma   (jaker at tsunami.triton.net)
Network Engineer  && Systems Administrator
Triton Technologies, Inc. (http://www.triton.net)
800.837.4253 x125  ||  616.364.8761
"The whole of science is nothing more than a refinement of everyday
thinking."
              - Albert Einstein




More information about the inn-workers mailing list