buffered-sql detail

Gabriel Blanchard gabe at teksavvy.ca
Wed Aug 5 15:48:28 CEST 2009


On 5-Aug-09, at 9:37 AM, Alan DeKok wrote:
>
>   Hm... that's weird.  And I can't seem to reproduce the problem here.
>
>   Ugh.
>
I'm just looking through the detail.c file and it seems to be having a  
problem here

         /*
          *      We're done reading the file, but we didn't read
          *      anything.  Clean up, and don't return anything.
          */
         if (!data->vps) {
                 data->state = STATE_HEADER;
                 if (feof(data->fp)) goto cleanup;
                 return 0;
         }

is the detail (sql relay) file expected to be in a key value pair  
format?
Right now my detail file is simply a bunch of SQL statements from the  
sql_log module. So it obviously doesn't have any vps so it just jumps  
right ahead to cleanup without sending anything to my sql module. I  
know this used to work in a previous 2.x version of Freeradius.





More information about the Freeradius-Devel mailing list