From: Guus Sliepen Date: Wed, 11 Mar 2020 22:12:08 +0000 (+0100) Subject: Correctly remove all duplicates when having many hostnames in an invitation URL. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=eaea9a2ea3c80478a6aa4e502afaed5b5b6bbfde;p=meshlink Correctly remove all duplicates when having many hostnames in an invitation URL. Commit fbcf089 missed adjusting one call to remove_duplicate_hostnames(). --- 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++) {