mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
initialize fields that sosend() expects to have valid values
svn path=/trunk/; revision=10935
This commit is contained in:
parent
db2f0db5f7
commit
cd1222eced
1 changed files with 3 additions and 0 deletions
|
@ -257,6 +257,9 @@ int OskitTCPSend( void *socket, OSK_PCHAR Data, OSK_UINT Len,
|
||||||
mb.m_data = Data;
|
mb.m_data = Data;
|
||||||
mb.m_len = Len;
|
mb.m_len = Len;
|
||||||
mb.m_flags = M_EOR;
|
mb.m_flags = M_EOR;
|
||||||
|
mb.m_pkthdr.len = Len;
|
||||||
|
mb.m_next = 0;
|
||||||
|
mb.m_nextpkt = 0;
|
||||||
error = sosend( socket, NULL, NULL /*&uio*/, (struct mbuf *)&mb, NULL, 0 );
|
error = sosend( socket, NULL, NULL /*&uio*/, (struct mbuf *)&mb, NULL, 0 );
|
||||||
/*printf("uio.uio_resid = %d\n", uio.uio_resid);*/
|
/*printf("uio.uio_resid = %d\n", uio.uio_resid);*/
|
||||||
*OutLen = Len /*uio.uio_resid*/;
|
*OutLen = Len /*uio.uio_resid*/;
|
||||||
|
|
Loading…
Reference in a new issue