commit | 160b2e156e1c2c1e7d8db6b5e3f6ccf75e9dd34f | [log] [tgz] |
---|---|---|
author | Michael Marineau <michael.marineau@coreos.com> | Mon Jan 12 12:10:45 2015 -0800 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Mon Jan 12 20:38:54 2015 +0000 |
tree | 98389f457dfe71d6ff76e9eef45fb8930e4fdd4e | |
parent | 632d287f9f3f54b09809eebbd3cacbcb00b9f2fc [diff] |
ssh/agent: do not return nil entries from keyring.Signers() The slice returned is constructed with both a pre-set length and append() resulting in a slice twice as long and half-full of nil. Setting the capacity instead of length gets the desired result. Change-Id: I758423594e4f4c0506c53f227454f57a9dc8bdf1 Reviewed-on: https://go-review.googlesource.com/2659 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>