From eaea9a2ea3c80478a6aa4e502afaed5b5b6bbfde Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 11 Mar 2020 23:12:08 +0100 Subject: [PATCH] Correctly remove all duplicates when having many hostnames in an invitation URL. Commit fbcf089 missed adjusting one call to remove_duplicate_hostnames(). --- src/meshlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlink.c b/src/meshlink.c index 789121d1..f87e4de0 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -489,7 +489,7 @@ static char *get_my_hostname(meshlink_handle_t *mesh, uint32_t flags) { } } - remove_duplicate_hostnames(hostname, port, 4); + remove_duplicate_hostnames(hostname, port, n); // Resolve the hostnames for(int i = 0; i < n; i++) { -- 2.39.2