mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 21:46:52 +01:00
Size the buffer of a hybrid confirmation for an empty reply, not the mtu
This commit is contained in:
1 parent
a3dc54b012
commit
eff67f1159
1 file changed
+4
-1
@@ -303,7 +303,10 @@ func (hm *HandshakeManager) completeHybridResponder(via ViaSender, hh *Handshake
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (hm *HandshakeManager) sendHybridConfirmation(hostinfo *HostInfo) {
|
func (hm *HandshakeManager) sendHybridConfirmation(hostinfo *HostInfo) {
|
||||||
hm.f.send(header.Test, header.TestReply, hostinfo.ConnectionState, hostinfo, []byte{}, make([]byte, 12, 12), make([]byte, mtu))
|
// The reply is empty, so even relayed it is just two headers and two tags.
|
||||||
|
cs := hostinfo.ConnectionState
|
||||||
|
out := make([]byte, 2*(header.Len+cs.eKey.Overhead()))
|
||||||
|
hm.f.send(header.Test, header.TestReply, cs, hostinfo, []byte{}, make([]byte, 12, 12), out)
|
||||||
}
|
}
|
||||||
|
|
||||||
// reconfirmHybrid answers a msg3 for a hybrid tunnel this responder already
|
// reconfirmHybrid answers a msg3 for a hybrid tunnel this responder already
|
||||||
|
|||||||
Reference in new issue
Block a user