summaryrefslogtreecommitdiff
path: root/src/supplemental/tcp
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplemental/tcp')
-rw-r--r--src/supplemental/tcp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/tcp/tcp.c b/src/supplemental/tcp/tcp.c
index dd6f28ff..2fb7f56d 100644
--- a/src/supplemental/tcp/tcp.c
+++ b/src/supplemental/tcp/tcp.c
@@ -439,7 +439,7 @@ nni_tcp_listener_alloc(nng_stream_listener **lp, const nng_url *url)
h = url->u_hostname;
// Wildcard special case, which means bind to INADDR_ANY.
- if ((h != NULL) && ((strcmp(h, "*") == 0) || (strlen(h) == 0))) {
+ if ((h != NULL) && ((strcmp(h, "*") == 0) || (strcmp(h, "") == 0))) {
h = NULL;
}
nni_tcp_resolv(h, url->u_port, af, 1, aio);