Finish zeroing fields that need it.

svn path=/trunk/; revision=13661
This commit is contained in:
Art Yerkes 2005-02-19 23:24:38 +00:00
parent 1053eac705
commit a9f369b8ed

View file

@ -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) {