mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 20:20:09 +01:00
policy: fix possible crash when looking up hostname
Regression in 773c006a4c
This commit is contained in:
parent
691698fe47
commit
69f25ca5cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue