radrelay patch for 1.1.6

Milan Holub holub at thenet.ch
Fri May 18 09:24:15 CEST 2007


Hi Alan,

On Thu, May 17, 2007 at 05:56:06PM +0200, Alan DeKok wrote:
> Milan Holub wrote:
> > Here is my tested patch:
> 
>   Are you sure?
> 
> ...
> >                         } while(0);
> > -                       if (r_args->records_print && state == STATE_RUN){
> > +                       else {
> >                                 stats.records_read++;
> ...
> 
>   The "after" portion doesn't look like valid C to me.  I'll check in a
> few days when I have access to a test machine.

==> you mean that else? -> it's related to:
if (read_one(fp, r) == EOF) do {...} while (0); else ...
    
==> it compiles cleanly and works for me...


Milan Holub
holub (at) thenet (dot) ch

--------------------------------------
 TheNet-Internet Services AG,
 im Bernertechnopark, Morgenstr. 129
 CH-3018, Bern, Switzerland
 031 998 4333, Fax 031 998 4330
 http://www.thenet.ch
 http://wlan.thenet.ch
--------------------------------------



More information about the Freeradius-Users mailing list