mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-08 11:38:36 +00:00
Lets try always supplying the AES keys to Packet dearmor() and see if that prevents the coma problem.
This commit is contained in:
parent
7c2066c258
commit
147945d20f
@ -67,7 +67,7 @@ bool IncomingPacket::tryDecode(const RuntimeEnvironment *RR,void *tPtr,int32_t f
|
|||||||
const SharedPtr<Peer> peer(RR->topology->getPeer(tPtr,sourceAddress));
|
const SharedPtr<Peer> peer(RR->topology->getPeer(tPtr,sourceAddress));
|
||||||
if (peer) {
|
if (peer) {
|
||||||
if (!trusted) {
|
if (!trusted) {
|
||||||
if (!dearmor(peer->key(), peer->aesKeysIfSupported())) {
|
if (!dearmor(peer->key(), peer->aesKeys())) {
|
||||||
RR->t->incomingPacketMessageAuthenticationFailure(tPtr,_path,packetId(),sourceAddress,hops(),"invalid MAC");
|
RR->t->incomingPacketMessageAuthenticationFailure(tPtr,_path,packetId(),sourceAddress,hops(),"invalid MAC");
|
||||||
peer->recordIncomingInvalidPacket(_path);
|
peer->recordIncomingInvalidPacket(_path);
|
||||||
return true;
|
return true;
|
||||||
|
@ -534,12 +534,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
inline int8_t bondingPolicy() { return _bondingPolicy; }
|
inline int8_t bondingPolicy() { return _bondingPolicy; }
|
||||||
|
|
||||||
//const AES *aesKeysIfSupported() const
|
//inline const AES *aesKeysIfSupported() const
|
||||||
//{ return (const AES *)0; }
|
//{ return (const AES *)0; }
|
||||||
|
|
||||||
const AES *aesKeysIfSupported() const
|
inline const AES *aesKeysIfSupported() const
|
||||||
{ return (_vProto >= 12) ? _aesKeys : (const AES *)0; }
|
{ return (_vProto >= 12) ? _aesKeys : (const AES *)0; }
|
||||||
|
|
||||||
|
inline const AES *aesKeys() const
|
||||||
|
{ return _aesKeys; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct _PeerPath
|
struct _PeerPath
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user