From f3834347e9e8b71df2db632ce5b5146487e12a01 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 25 Jan 2019 16:52:50 -0800 Subject: [PATCH] nomad: fix panic when no node conn found A missing return would cause a panic when a server could find no route to a client. --- nomad/client_fs_endpoint.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/client_fs_endpoint.go b/nomad/client_fs_endpoint.go index 998d30389001..120927a545d0 100644 --- a/nomad/client_fs_endpoint.go +++ b/nomad/client_fs_endpoint.go @@ -292,6 +292,7 @@ func (f *FileSystem) stream(conn io.ReadWriteCloser) { code = helper.Int64ToPtr(404) } f.handleStreamResultError(err, code, encoder) + return } // Get a connection to the server