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
Kernel - Commenting changes only
[tpg/acess2.git]
/
KernelLand
/
Modules
/
IPStack
/
udp.c
diff --git
a/KernelLand/Modules/IPStack/udp.c
b/KernelLand/Modules/IPStack/udp.c
index
8b0904c
..
1d80569
100644
(file)
--- a/
KernelLand/Modules/IPStack/udp.c
+++ b/
KernelLand/Modules/IPStack/udp.c
@@
-255,7
+255,11
@@
size_t UDP_Channel_Write(tVFS_Node *Node, off_t Offset, size_t Length, const voi
const tUDPEndpoint *ep;
const void *data;
int ofs;
const tUDPEndpoint *ep;
const void *data;
int ofs;
- if(chan->LocalPort == 0) return 0;
+
+ if(chan->LocalPort == 0) {
+ Log_Notice("UDP", "Write to channel %p with zero local port", chan);
+ return 0;
+ }
ep = Buffer;
ofs = 2 + 2 + IPStack_GetAddressSize( ep->AddrType );
ep = Buffer;
ofs = 2 + 2 + IPStack_GetAddressSize( ep->AddrType );
UCC
git Repository :: git.ucc.asn.au