From 27d05df1f8cd5108edc57741d19e7d7bc3c4f476 Mon Sep 17 00:00:00 2001 From: Andrew Martinez Date: Fri, 12 Mar 2021 13:29:43 -0500 Subject: [PATCH] on dupe info, don't use old pointers --- library/posture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/posture.c b/library/posture.c index 6dd61d20..302e1ad3 100644 --- a/library/posture.c +++ b/library/posture.c @@ -442,6 +442,9 @@ static void ziti_pr_send_individually(ziti_context ztx) { NEWP(new_info, pr_info); memcpy(new_info, info, sizeof(pr_info)); + new_info->id = strdup(info->id); + new_info->obj = strdup(info->obj); + NEWP(cb_ctx, pr_cb_ctx); cb_ctx->info = new_info; cb_ctx->ztx = ztx;