summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/client/stat_client.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-07-08 08:38:26 -0400
committerDave Barach <dave@barachs.net>2019-07-08 08:50:10 -0400
commit97a88aee6f5957f60165882c300136d9ac62204d (patch)
tree3450a4b43f807656ebda6f5eca6cd760951fd2e2 /src/vpp-api/client/stat_client.c
parentf2f89a76e4f36c42b2850438936ee16d6651984a (diff)
VPP-1718: fix dangling reference to stats seg directory
Change-Id: If6da62e5a49064ba27a3e0bb6e5d31b9b4d04ea3 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vpp-api/client/stat_client.c')
-rw-r--r--src/vpp-api/client/stat_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vpp-api/client/stat_client.c b/src/vpp-api/client/stat_client.c
index 3959c92167f..c766e2bdea1 100644
--- a/src/vpp-api/client/stat_client.c
+++ b/src/vpp-api/client/stat_client.c
@@ -322,6 +322,8 @@ stat_segment_access_start (stat_segment_access_t * sa,
sa->epoch = shared_header->epoch;
while (shared_header->in_progress != 0)
;
+ sm->directory_vector = stat_segment_pointer
+ (sm->shared_header, sm->shared_header->directory_offset);
}
static bool