mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Finish zeroing fields that need it.
svn path=/trunk/; revision=13661
This commit is contained in:
parent
1053eac705
commit
a9f369b8ed
1 changed files with 4 additions and 1 deletions
|
@ -122,6 +122,7 @@ int OskitTCPSocket( void *context,
|
|||
so->so_error = 0;
|
||||
so->so_q = so->so_q0 = NULL;
|
||||
so->so_qlen = 0;
|
||||
so->so_head = NULL;
|
||||
*aso = so;
|
||||
}
|
||||
return error;
|
||||
|
@ -379,7 +380,6 @@ int OskitTCPAccept( void *socket,
|
|||
*newso = so;
|
||||
|
||||
/*so->so_state &= ~SS_COMP;*/
|
||||
so->so_q = NULL;
|
||||
|
||||
mnam.m_data = &sa;
|
||||
mnam.m_len = sizeof(sa);
|
||||
|
@ -387,6 +387,9 @@ int OskitTCPAccept( void *socket,
|
|||
(void) soaccept(so, &mnam);
|
||||
|
||||
so->so_state = SS_NBIO | SS_ISCONNECTED;
|
||||
so->so_q = so->so_q0 = NULL;
|
||||
so->so_qlen = 0;
|
||||
so->so_head = 0;
|
||||
|
||||
OS_DbgPrint(OSK_MID_TRACE,("error = %d\n", error));
|
||||
if (name) {
|
||||
|
|
Loading…
Reference in a new issue