git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bedtime commit, misc changes
[tpg/acess2.git]
/
Modules
/
IPStack
/
tcp.c
diff --git
a/Modules/IPStack/tcp.c
b/Modules/IPStack/tcp.c
index
1662ca0
..
50eacbc
100644
(file)
--- a/
Modules/IPStack/tcp.c
+++ b/
Modules/IPStack/tcp.c
@@
-386,7
+386,7
@@
void TCP_INT_HandleConnectionPacket(tTCPConnection *Connection, tTCPHeader *Head
// /NOTES
// Allocate and fill cached packet
- pkt = malloc(
dataLen + sizeof(tTCPStoredPacket)
);
+ pkt = malloc(
sizeof(tTCPStoredPacket) + dataLen
);
pkt->Next = NULL;
pkt->Sequence = ntohl(Header->SequenceNumber);
pkt->Length = dataLen;
UCC
git Repository :: git.ucc.asn.au