From: Alan T. DeKok Date: Tue, 7 Jun 2011 21:30:31 +0000 (+0200) Subject: Fix build issues X-Git-Tag: release_3_0_0_beta0~778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=654377b393b53a52e6b22601c49113e91119634f;p=thirdparty%2Ffreeradius-server.git Fix build issues --- diff --git a/src/main/detail.c b/src/main/detail.c index 432dcf36570..a89a6d3e1e9 100644 --- a/src/main/detail.c +++ b/src/main/detail.c @@ -303,6 +303,7 @@ int detail_recv(rad_listen_t *listener) RADIUS_PACKET *packet; char buffer[2048]; listen_detail_t *data = listener->data; + struct timeval now; /* * We may be in the main thread. It needs to update the @@ -728,13 +729,11 @@ int detail_recv(rad_listen_t *listener) } /* - * FIXME: many of these checks may not be necessary when - * reading from the detail file. - * - * Try again later... + * Don't bother doing limit checks, etc. */ + gettimeofday(&now, NULL); if (!request_insert(listener, packet, &data->detail_client, - rad_accounting)) { + rad_accounting, &now)) { rad_free(&packet); data->state = STATE_NO_REPLY; /* try again later */ return 0; diff --git a/src/main/process.c b/src/main/process.c index 214064f7445..d5931204644 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -1273,7 +1273,7 @@ int request_receive(rad_listen_t *listener, RADIUS_PACKET *packet, return 0; } - return request_insert(listener, packet, client, fun); + return request_insert(listener, packet, client, fun, &now); } int request_insert(rad_listen_t *listener, RADIUS_PACKET *packet,