From 12d4c85eb6ce75baf0694033d8bb49ed05fe4bcd Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 28 Sep 2015 17:40:37 +0200 Subject: [PATCH] Fix a missing nil-check in remote list generation --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index bf8405a..f746401 100644 --- a/main.go +++ b/main.go @@ -152,6 +152,10 @@ func main() { continue outer } + if session.User == nil { + continue + } + for _, u := range h.Users { if u == session.User.Name { session.Remotes = append(session.Remotes, h.Address)