From 342f4f8845c80c0d9e66b49aa824e6eefc46ad55 Mon Sep 17 00:00:00 2001 From: eugene Date: Fri, 4 Feb 2022 15:33:12 -0500 Subject: [PATCH] Revert "reduce redundant memory allocatio - resolves btcsuite/btcd#1699" This reverts commit 780cc0889fd2f326e4a2a9b513d8d30ff37e0cd2. --- connmgr/tor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connmgr/tor.go b/connmgr/tor.go index a2e512db..2b22ae51 100644 --- a/connmgr/tor.go +++ b/connmgr/tor.go @@ -76,7 +76,7 @@ func TorLookupIP(host, proxy string) ([]net.IP, error) { return nil, ErrTorUnrecognizedAuthMethod } - buf = make([]byte, 6+len(host)) + buf = make([]byte, 7+len(host)) buf[0] = 5 // protocol version buf[1] = '\xF0' // Tor Resolve buf[2] = 0 // reserved