Skip to content

Commit 542ae66

Browse files
authored
Merge pull request #55 from openziti/tcp-half-close
fix crash
2 parents 06ae229 + 6d55d9c commit 542ae66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deps/CMakeLists.txt

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

33
FetchContent_Declare(ziti-sdk-c
44
GIT_REPOSITORY https://github.com/openziti/ziti-sdk-c.git
5-
GIT_TAG 0.16.3
5+
GIT_TAG 0.16.4
66
)
77
set(ZITI_BUILD_TESTS off)
88
set(ZITI_BUILD_PROGRAMS off)

lib/dns.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const char* assign_ip(const char *hostname) {
6565
fprintf(stderr, "WARN: DNS assignment space is exhausted");
6666
}
6767
snprintf(e->ip, MAX_IP_LENGTH, "%d.%d.%d.%d", addr>>24U, (addr>>16U) & 0xFFU, (addr>>8U)&0xFFU, addr&0xFFU);
68+
snprintf(e->hostname, sizeof(e->hostname), "%s",hostname);
6869

6970
LIST_INSERT_HEAD(&ip_cache.entries, e, _next);
7071
return e->ip;

0 commit comments

Comments
 (0)