summaryrefslogtreecommitdiffhomepage
path: root/src/receive.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/receive.go')
-rw-r--r--src/receive.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/receive.go b/src/receive.go
index 6530c47..e9c14f5 100644
--- a/src/receive.go
+++ b/src/receive.go
@@ -358,11 +358,13 @@ func (device *Device) RoutineHandshake() {
return
}
+ logDebug.Println("Creating response...")
+
outElem := device.NewOutboundElement()
writer := bytes.NewBuffer(outElem.data[:0])
binary.Write(writer, binary.LittleEndian, response)
- elem.packet = writer.Bytes()
- peer.mac.AddMacs(elem.packet)
+ outElem.packet = writer.Bytes()
+ peer.mac.AddMacs(outElem.packet)
addToOutboundQueue(peer.queue.outbound, outElem)
case MessageResponseType: