From 683e6fbe3628a4b056f80e23c8702175f1fac482 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 2 Sep 2016 10:27:11 -0700 Subject: [PATCH] Remove incorrect logic from GetFullyQualifiedName() I think this logic was originally added with the assumption that any hostname with a dot in it was an FQDN. I believe this is incorrect. The hostname is the hostname regardless of included dots, and getting the FQDN amounts to always querying for the canonical name. --- src/libpsl-native/src/getfullyqualifiedname.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libpsl-native/src/getfullyqualifiedname.cpp b/src/libpsl-native/src/getfullyqualifiedname.cpp index df17c8d43..c33e11e8e 100644 --- a/src/libpsl-native/src/getfullyqualifiedname.cpp +++ b/src/libpsl-native/src/getfullyqualifiedname.cpp @@ -30,11 +30,6 @@ char *GetFullyQualifiedName() return NULL; } - if (strchr(computerName, '.') != NULL) - { - return computerName; - } - struct addrinfo hints, *info; memset(&hints, 0, sizeof hints);