From 7d5bdcf993d6e758257e0e73899eefd0189ae0f9 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 3 Dec 2019 18:47:11 +0300 Subject: [PATCH] fix pointer dereference in memory registry Signed-off-by: Vasiliy Tolstov --- registry/memory/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/memory/util.go b/registry/memory/util.go index e49f30c8..965c75b5 100644 --- a/registry/memory/util.go +++ b/registry/memory/util.go @@ -44,9 +44,9 @@ func recordToService(r *record) *registry.Service { endpoints := make([]*registry.Endpoint, len(r.Endpoints)) for i, e := range r.Endpoints { request := new(registry.Value) - request = e.Request + *request = *e.Request response := new(registry.Value) - response = e.Response + *response = *e.Response metadata := make(map[string]string) for k, v := range e.Metadata {