HUP support (some time in the future)
typedef struct main_config_t {
struct main_config *next;
- time_t config_dead_time;
+ int refcount;
lrad_ipaddr_t myip; /* from the command-line only */
int port; /* from the command-line only */
int log_auth;
request->packet->timestamp = request->timestamp;
request->number = request_num_counter++;
request->priority = listener->type;
- request->root = root;
/*
* Set virtual server identity
return 0;
}
request->in_request_hash = TRUE;
+ request->root = root;
+ root->refcount++;
/*
* The request passes many of our sanity checks.
request->data = NULL;
}
+ if (request->root &&
+ (request->root->refcount > 0)) {
+ request->root->refcount--;
+ request->root = NULL;
+ }
+
#ifndef NDEBUG
request->magic = 0x01020304; /* set the request to be nonsense */
#endif