> From: Rohaizam Abu Bakar
> Sent: Wednesday, 24 September 2003 3:53 PM

> I try to fix it... with below modification... it's work..!! no more make
> error..  just follow patch from rlm_counter

> *** rlm_ippool.c        Wed Sep 24 13:44:58 2003
> --- rlm_ippool.c.ORIG   Tue Jul 15 01:29:30 2003
> ***************
> *** 87,108 ****
>         int override;
>         GDBM_FILE gdbm;
>         GDBM_FILE ip;
> - #ifdef HAVE_PTHREAD_H
>         pthread_mutex_t session_mutex;
>         pthread_mutex_t ip_mutex;
> - #endif
>   } rlm_ippool_t;
> -
> - #ifndef HAVE_PTHREAD_H
> - /*
> -  *      This is a lot simpler than putting ifdef's around
> -  *      every use of the pthread functions.
> -  */
> - #define pthread_mutex_lock(a)
> - #define pthread_mutex_unlock(a)
> - #define pthread_mutex_init(a,b)
> - #define pthread_mutex_destroy(a)
> - #endif
> 
>   typedef struct ippool_info {
>         uint32_t        ipaddr;
> --- 87,95 ----

That looks like it will work, except you've got your
patch reversed... If anyone goes to use it, they'll have
to use patch -R.

Also, rlm_ippool's just been rewritten. Assuming it turns out
OK, that should go into 0.9.2 since the current rlm_ippool leaks
IP addresses from the pool, eventually draining it completely.


--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

On a sidewalk near Portland State
University someone wrote `Trust Jesus', and
someone else wrote `But Cut the Cards'.
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to