]> git.meshlink.io Git - meshlink/commitdiff
Correctly remove all duplicates when having many hostnames in an invitation URL.
authorGuus Sliepen <guus@meshlink.io>
Wed, 11 Mar 2020 22:12:08 +0000 (23:12 +0100)
committerGuus Sliepen <guus@meshlink.io>
Wed, 11 Mar 2020 22:12:08 +0000 (23:12 +0100)
Commit fbcf089 missed adjusting one call to
remove_duplicate_hostnames().

src/meshlink.c

index 789121d13afbec89a2d56bdf4737cadc19ee2cac..f87e4de0ec8326d34c07cc5b6b9a196ea10adbda 100644 (file)
@@ -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++) {