mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
nss-myhostname: remove dead test of variable that was not set
This commit is contained in:
parent
2abb5b3b10
commit
82e4c2d656
@ -480,7 +480,7 @@ enum nss_status _nss_myhostname_gethostbyaddr2_r(
|
|||||||
return NSS_STATUS_NOTFOUND;
|
return NSS_STATUS_NOTFOUND;
|
||||||
|
|
||||||
found:
|
found:
|
||||||
if (!canonical || (!additional && additional_from_hostname)) {
|
if (!canonical || additional_from_hostname) {
|
||||||
hn = gethostname_malloc();
|
hn = gethostname_malloc();
|
||||||
if (!hn) {
|
if (!hn) {
|
||||||
*errnop = ENOMEM;
|
*errnop = ENOMEM;
|
||||||
@ -490,8 +490,7 @@ found:
|
|||||||
|
|
||||||
if (!canonical)
|
if (!canonical)
|
||||||
canonical = hn;
|
canonical = hn;
|
||||||
|
else
|
||||||
if (!additional && additional_from_hostname)
|
|
||||||
additional = hn;
|
additional = hn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user