Skip to content

Commit 631d515

Browse files
authored
* null check * update [email protected]
1 parent d6c0a5d commit 631d515

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)
22

33

44
set(ZITI_SDK_DIR "" CACHE FILEPATH "developer option: use local ziti-sdk-c checkout")
5-
set(ZITI_SDK_VERSION "1.6.5" CACHE STRING "ziti-sdk-c version or branch to use")
5+
set(ZITI_SDK_VERSION "1.6.6" CACHE STRING "ziti-sdk-c version or branch to use")
66

77
# if TUNNEL_SDK_ONLY then don't descend into programs/ziti-edge-tunnel
88
option(TUNNEL_SDK_ONLY "build only ziti-tunnel-sdk (without ziti)" OFF)

lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,12 @@ static int process_cmd(const tunnel_command *cmd, command_cb cb, void *ctx) {
781781
break;
782782
}
783783

784+
if (is_null(auth.identifier, "identifier not specified", &result)) {
785+
ZITI_LOG(ERROR, "invalid identifier");
786+
free_tunnel_id_ext_auth(&auth);
787+
break;
788+
}
789+
784790
struct ziti_instance_s *inst = model_map_get(&instances, auth.identifier);
785791
if (is_null(inst, "ziti context not found", &result) ||
786792
is_null(inst->ztx, "ziti context is not loaded", &result)) {

0 commit comments

Comments
 (0)