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"); |
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 |
|
/* |
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; |