ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/auth.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/auth.c (file contents):
Revision 8361 by michael, Sun Mar 4 14:22:42 2018 UTC vs.
Revision 8385 by michael, Fri Mar 16 20:09:55 2018 UTC

# Line 50 | Line 50
50   #include "s_bsd.h"
51   #include "log.h"
52   #include "send.h"
53 < #include "mempool.h"
53 > #include "memory.h"
54  
55  
56   enum
# Line 81 | Line 81 | static const char *const HeaderMessages[
81  
82   #define auth_sendheader(c, i) sendto_one_notice((c), &me, "%s", HeaderMessages[(i)])
83  
84 static mp_pool_t *auth_pool;
84   static dlink_list auth_list;
85  
86  
# Line 92 | Line 91 | static dlink_list auth_list;
91   static struct AuthRequest *
92   auth_make(struct Client *client)
93   {
94 <  struct AuthRequest *auth = mp_pool_get(auth_pool);;
94 >  struct AuthRequest *auth = xcalloc(sizeof(*auth));
95  
96    client->connection->auth = auth;
97    auth->client = client;
# Line 116 | Line 115 | auth_release_client(struct AuthRequest *
115    assert(dlinkFind(&auth_list, auth));
116    dlinkDelete(&auth->node, &auth_list);
117  
118 <  mp_pool_release(auth);
118 >  xfree(auth);
119    client->connection->auth = NULL;
120  
121    /*
# Line 515 | Line 514 | auth_delete(struct AuthRequest *auth)
514  
515    assert(dlinkFind(&auth_list, auth));
516    dlinkDelete(&auth->node, &auth_list);
517 <  mp_pool_release(auth);
517 >  xfree(auth);
518   }
519  
520   /*
# Line 572 | Line 571 | auth_init(void)
571      .when = 1
572    };
573  
575  auth_pool = mp_pool_new(sizeof(struct AuthRequest), MP_CHUNK_SIZE_AUTH);
574    event_add(&timeout_auth_queries, NULL);
575   }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)