Skip to content

Commit

Permalink
do not try binding if session had not been received yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Oct 22, 2024
1 parent f713dc6 commit c8629fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ static void list_routers_cb(ziti_service_routers *srv_routers, const ziti_error
}
free(srv_routers);

process_bindings(conn);
if (conn->server.token != NULL) {
process_bindings(conn);
}
}

static void get_service_cb(ziti_context ztx, const ziti_service *service, int status, void *ctx) {
Expand Down

0 comments on commit c8629fe

Please sign in to comment.