From 48fb951c4a6f4c94e383da945591443b1c37c974 Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Mon, 6 Dec 2021 15:12:23 +0100 Subject: [PATCH] fix #59 segmentation fault --- src/bbl_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bbl_config.c b/src/bbl_config.c index 47db286b..6093b8c5 100644 --- a/src/bbl_config.c +++ b/src/bbl_config.c @@ -469,7 +469,7 @@ json_parse_access_interface (bbl_ctx_s *ctx, json_t *access_interface, bbl_acces if (json_unpack(access_interface, "{s:s}", "agent-remote-id", &s) == 0) { access_config->agent_remote_id = strdup(s); } else { - if (ctx->config.agent_circuit_id) { + if (ctx->config.agent_remote_id) { access_config->agent_remote_id = strdup(ctx->config.agent_remote_id); } }