Skip to content

Commit

Permalink
use logical or when testing dial_protocol_str (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Sep 17, 2023
1 parent 9b7d6a4 commit df1701f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ziti-tunnel-cbs/ziti_hosting.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static bool addrinfo_from_host_ctx(struct addrinfo_params_s *dial_params, const

if (host_ctx->forward_protocol) {
dial_protocol_str = app_data->dst_protocol;
if (dial_protocol_str == NULL | dial_protocol_str[0] == '\0') {
if (dial_protocol_str == NULL || dial_protocol_str[0] == '\0') {
snprintf(dial_params->err, sizeof(dial_params->err),
"hosted_service[%s] config specifies 'forwardProtocol', but client didn't send %s",
host_ctx->service_name, DST_PROTO_KEY);
Expand Down

0 comments on commit df1701f

Please sign in to comment.