From a5074a536efbad2a8258b891241b7bf6f739e3fa Mon Sep 17 00:00:00 2001 From: Tim Beatham Date: Sun, 10 Dec 2023 22:31:24 +0000 Subject: [PATCH] main - BUGFIX - segfault BUGFIX --- pkg/robin/requester.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/robin/requester.go b/pkg/robin/requester.go index 6b624d6..388ae51 100644 --- a/pkg/robin/requester.go +++ b/pkg/robin/requester.go @@ -33,7 +33,7 @@ func (n *IpcHandler) CreateMesh(args *ipc.NewMeshArgs, reply *string) error { overrideConf.Endpoint = &args.Endpoint } - if *overrideConf.Role == conf.CLIENT_ROLE { + if overrideConf.Role != nil && *overrideConf.Role == conf.CLIENT_ROLE { return fmt.Errorf("cannot create a mesh with no public endpoint") }