Finish zeroing fields that need it.
Modified: trunk/reactos/drivers/lib/oskittcp/oskittcp/interface.c
_____
Modified: trunk/reactos/drivers/lib/oskittcp/oskittcp/interface.c
--- trunk/reactos/drivers/lib/oskittcp/oskittcp/interface.c
2005-02-19 23:12:32 UTC (rev 13660)
+++ trunk/reactos/drivers/lib/oskittcp/oskittcp/interface.c
2005-02-19 23:24:38 UTC (rev 13661)
@@ -122,6 +122,7 @@
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 @@
*newso = so;
/*so->so_state &= ~SS_COMP;*/
- so->so_q = NULL;
mnam.m_data = &sa;
mnam.m_len = sizeof(sa);
@@ -387,6 +387,9 @@
(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) {
Show replies by date