From 9fdd1ea9098dceb315b8cfbd370b332690a5d326 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 30 Apr 2017 17:59:10 +0200 Subject: [PATCH] rpc: fix panic when parsing filesystem response --- rpc/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/rpc.go b/rpc/rpc.go index 03f4b39..51e3da4 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -245,7 +245,7 @@ func (c ByteStreamRPC) FilesystemRequest(r FilesystemRequest) (roots []Filesyste roots = make([]Filesystem, 0) - if err = c.decoder.Decode(roots); err != nil { + if err = c.decoder.Decode(&roots); err != nil { return }