projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an explicit hash_delete() function.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
eb6ecfa
..
c3e8c62
100644
(file)
--- a/
src/net_packet.c
+++ b/
src/net_packet.c
@@
-372,7
+372,11
@@
static bool receive_udppacket(node_t *n, vpn_packet_t *inpkt) {
}
return false;
}
}
return false;
}
- return sptps_receive_data(&n->sptps, (char *)&inpkt->seqno, inpkt->len);
+ if(!sptps_receive_data(&n->sptps, (char *)&inpkt->seqno, inpkt->len)) {
+ logger(DEBUG_TRAFFIC, LOG_ERR, "Got bad packet from %s (%s)", n->name, n->hostname);
+ return false;
+ }
+ return true;
}
if(!n->status.validkey) {
}
if(!n->status.validkey) {