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

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 5544 by michael, Thu Feb 12 13:40:24 2015 UTC vs.
Revision 5545 by michael, Thu Feb 12 14:13:34 2015 UTC

# Line 87 | Line 87 | make_client(struct Client *from)
87  
88    if (!from)
89    {
90 <    client_p->from                      = client_p; /* 'from' of local client is self! */
91 <    client_p->connection               = mp_pool_get(connection_pool);
92 <    client_p->connection->since        = CurrentTime;
93 <    client_p->connection->lasttime     = CurrentTime;
94 <    client_p->connection->firsttime    = CurrentTime;
90 >    client_p->from = client_p;  /* 'from' of local client is self! */
91 >    client_p->connection = mp_pool_get(connection_pool);
92 >    client_p->connection->since = CurrentTime;
93 >    client_p->connection->lasttime = CurrentTime;
94 >    client_p->connection->firsttime = CurrentTime;
95      client_p->connection->registration = REG_INIT;
96  
97      /* as good a place as any... */
98      dlinkAdd(client_p, &client_p->connection->lclient_node, &unknown_list);
99    }
100    else
101 <    client_p->from = from; /* 'from' of local client is self! */
101 >    client_p->from = from;
102  
103    client_p->idhnext = client_p;
104 <  client_p->hnext  = client_p;
104 >  client_p->hnext = client_p;
105    SetUnknown(client_p);
106    strcpy(client_p->username, "unknown");
107    strcpy(client_p->account, "0");
# Line 138 | Line 138 | free_client(struct Client *client_p)
138      assert(IsClosing(client_p) && IsDead(client_p));
139  
140      MyFree(client_p->connection->challenge_response);
141    MyFree(client_p->connection->challenge_operator);
141      client_p->connection->challenge_response = NULL;
142 +    MyFree(client_p->connection->challenge_operator);
143      client_p->connection->challenge_operator = NULL;
144  
145      /*
# Line 1051 | Line 1051 | del_all_accepts(struct Client *client_p)
1051   }
1052  
1053   unsigned int
1054 < client_get_idle_time(const struct Client *source_p, const struct Client *target_p)
1054 > client_get_idle_time(const struct Client *source_p,
1055 >                     const struct Client *target_p)
1056   {
1057    unsigned int idle = 0;
1058    unsigned int min_idle = 0;

Diff Legend

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