Don't call client_find. The REQUEST now holds a pointer to
authoraland <aland>
Thu, 3 Jan 2008 09:53:16 +0000 (09:53 +0000)
committeraland <aland>
Thu, 3 Jan 2008 09:53:16 +0000 (09:53 +0000)
the client structure

src/modules/rlm_opendirectory/rlm_opendirectory.c

index 865c674..bfc2b81 100644 (file)
@@ -367,7 +367,8 @@ int od_authorize(void *instance, REQUEST *request)
        /* resolve client access list */
        uuid_clear(guid_nasgroup);
 #if 0
-       if ( (rad_client = client_find(request->packet->src_ipaddr)) != NULL && rad_client->community[0] != '\0' )
+       rad_client = request->client;
+       if (rad_client->community[0] != '\0' )
        {
                /*
                 *      The "community" can be a GUID (Globally Unique ID) or