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
Fixed keyboard bug where keypresses were not being registered, working on libreadline
[tpg/acess2.git]
/
Modules
/
IPStack
/
tcp.c
diff --git
a/Modules/IPStack/tcp.c
b/Modules/IPStack/tcp.c
index
741ec14
..
36837a5
100644
(file)
--- a/
Modules/IPStack/tcp.c
+++ b/
Modules/IPStack/tcp.c
@@
-482,6
+482,13
@@
tVFS_Node *TCP_Server_Init(tInterface *Interface)
{
tTCPListener *srv = malloc( sizeof(tTCPListener) );
+ Log_Debug("TCP", "srv = %p", srv);
+
+ if( srv == NULL ) {
+ Log_Warning("TCP", "malloc failed for listener (%i) bytes", sizeof(tTCPListener));
+ return NULL;
+ }
+
srv->Interface = Interface;
srv->Port = 0;
srv->NextID = 0;
UCC
git Repository :: git.ucc.asn.au