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 4815 by michael, Sat Nov 1 15:28:42 2014 UTC vs.
Revision 4854 by michael, Thu Nov 6 17:39:26 2014 UTC

# Line 90 | Line 90 | static void auth_connect_callback(fde_t
90   static struct AuthRequest *
91   make_auth_request(struct Client *client)
92   {
93 <  struct AuthRequest *request = &client->connection->auth;
93 >  struct AuthRequest *const request = &client->connection->auth;
94  
95    memset(request, 0, sizeof(*request));
96  
# Line 108 | Line 108 | make_auth_request(struct Client *client)
108   void
109   release_auth_client(struct AuthRequest *auth)
110   {
111 <  struct Client *client = auth->client;
111 >  struct Client *const client = auth->client;
112  
113    if (IsDoingAuth(auth) || IsDNSPending(auth))
114      return;
# Line 145 | Line 145 | release_auth_client(struct AuthRequest *
145   static void
146   auth_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name, size_t namelength)
147   {
148 <  struct AuthRequest *auth = vptr;
148 >  struct AuthRequest *const auth = vptr;
149  
150    ClearDNSPending(auth);
151  
# Line 270 | Line 270 | start_auth_query(struct AuthRequest *aut
270   void
271   start_auth(struct Client *client_p)
272   {
273 <  struct AuthRequest *auth = NULL;
273 >  struct AuthRequest *const auth = make_auth_request(client_p);
274  
275  assert(client_p);
276
277  auth = make_auth_request(client_p);
275    SetInAuth(auth);
276    dlinkAddTail(auth, &auth->node, &auth_pending_list);
277  
# Line 481 | Line 478 | check_ident_reply(char *reply)
478   static void
479   read_auth_reply(fde_t *fd, void *data)
480   {
481 <  struct AuthRequest *auth = data;
481 >  struct AuthRequest *const auth = data;
482    const char *username = NULL;
483    ssize_t len = 0;
484    char buf[RFC1413_BUFSIZ + 1];

Diff Legend

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