From 06f6131702d7eae3170b2499f5a893207a99d222 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 27 May 2010 14:51:47 -0700 Subject: [PATCH] changes &x -> x[0:] for array to slice conversion R=gri CC=golang-dev https://golang.org/cl/1326042 --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index d0e8464..0798e26 100644 --- a/conn.go +++ b/conn.go @@ -171,7 +171,7 @@ func (hc *halfConn) decrypt(b *block) (bool, alert) { remoteMAC := payload[n:] hc.mac.Reset() - hc.mac.Write(&hc.seq) + hc.mac.Write(hc.seq[0:]) hc.incSeq() hc.mac.Write(b.data) @@ -188,7 +188,7 @@ func (hc *halfConn) encrypt(b *block) (bool, alert) { // mac if hc.mac != nil { hc.mac.Reset() - hc.mac.Write(&hc.seq) + hc.mac.Write(hc.seq[0:]) hc.incSeq() hc.mac.Write(b.data) mac := hc.mac.Sum()