mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-05 09:45:23 +01:00
- Guard against improper use of Client structures, due to legacy dependency on local[].
This commit is contained in:
parent
6883909f2a
commit
b7aa36e8d1
2 changed files with 1 additions and 3 deletions
|
@ -156,8 +156,6 @@ aClient *make_client(aClient *from, aClient *servr)
|
|||
cptr->buffer[0] = '\0';
|
||||
cptr->authfd = -1;
|
||||
cptr->fd = -1;
|
||||
|
||||
list_add(&cptr->lclient_node, &unknown_list);
|
||||
} else {
|
||||
cptr->fd = -256;
|
||||
}
|
||||
|
|
|
@ -1362,7 +1362,7 @@ void start_of_normal_client_handshake(aClient *acptr)
|
|||
struct hostent *he;
|
||||
|
||||
acptr->status = STAT_UNKNOWN;
|
||||
list_add(&acptr->special_node, &unknown_list);
|
||||
list_add(&acptr->lclient_node, &unknown_list);
|
||||
|
||||
RunHook(HOOKTYPE_HANDSHAKE, acptr);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue