include/radiusd.h added 'config_items' to the REQUEST structure.
authoraland <aland>
Wed, 24 Nov 1999 16:56:11 +0000 (16:56 +0000)
committeraland <aland>
Wed, 24 Nov 1999 16:56:11 +0000 (16:56 +0000)
main/util.c   request_free updates to free config_items
main/radiusd.c    initialize config_items to NULL.

src/include/radiusd.h
src/main/radiusd.c
src/main/util.c

index 15895bd..d8054a6 100644 (file)
@@ -17,6 +17,7 @@ typedef struct auth_req {
        RADIUS_PACKET           *packet;
        RADIUS_PACKET           *proxy;
        RADIUS_PACKET           *reply;
+       VALUE_PAIR              *config_items;
        char                    username[MAX_STRING_LEN];
        char                    secret[32];
        int                     child_pid;
index 8f98d94..a797aa7 100644 (file)
@@ -493,6 +493,7 @@ int main(int argc, char **argv)
                        request->packet = packet;
                        request->proxy = NULL;
                        request->reply = NULL;
+                       request->config_items = NULL;
                        request->timestamp = time(NULL);
                        strcpy(request->secret, cl->secret);
                        radrespond(request);
index d252d8f..bbf3821 100644 (file)
@@ -72,7 +72,7 @@ void (*sun_signal(int signo, void (*func)(int)))(int)
 
 
 /*
- *     Free an AUTHREQ struct.
+ *     Free a REQUEST struct.
  */
 void request_free(REQUEST *request)
 {
@@ -83,6 +83,9 @@ void request_free(REQUEST *request)
        if (request->reply) {
                rad_free(request->reply);
        }
+       if (request->config_items) {
+               pairfree(request->config_items);
+       }
        free(request);
 }