policy: fix possible crash when looking up hostname

Regression in 773c006a4c
This commit is contained in:
Dan Williams 2010-06-10 10:12:04 -07:00
parent 691698fe47
commit 69f25ca5cb

View file

@ -57,7 +57,7 @@ hostname_thread_run_cb (gpointer user_data)
HostnameThread *ht = (HostnameThread *) user_data;
const char *hostname = NULL;
if (strlen (ht->hostname) && strcmp (hostname, "."))
if (strlen (ht->hostname) && strcmp (ht->hostname, "."))
hostname = ht->hostname;
nm_log_dbg (LOGD_DNS, "(%p) calling address reverse-lookup result handler", ht);