Browse Source

fix handling of empty DHCP hostname

r1091
master
Matt Kraai 20 years ago
parent
commit
b935f955d3
  1. 1
      debian/changelog
  2. 2
      netcfg-dhcp.c

1
debian/changelog

@ -5,6 +5,7 @@ netcfg (0.16) unstable; urgency=low
Thanks to Thomas Poindessous for fixing this.
* kraai: canonicalize ethdetect description capitalization
* waldi: add s390 network types
* kraai: fix handling of empty DHCP hostname
-- Bastian Blank <waldi@debian.org> Thu, 10 Oct 2002 15:48:35 +0000

2
netcfg-dhcp.c

@ -70,7 +70,7 @@ static void netcfg_get_dhcp()
client->command(client, "go", NULL);
client->command(client, "get", "netcfg/dhcp_hostname", NULL);
if (client->value)
if (strcmp (client->value, "") != 0)
dhcp_hostname = strdup(client->value);
client->command(client, "subst", "netcfg/confirm_dhcp",

Loading…
Cancel
Save