* grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
while reallocating.
This commit is contained in:
parent
d6b7c7c986
commit
9eb832c365
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
|
||||
while reallocating.
|
||||
|
||||
2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Respect netmask from bootp/dhcp.
|
||||
|
|
|
@ -47,7 +47,7 @@ grub_net_add_dns_server (const struct grub_net_network_level_address *s)
|
|||
struct grub_net_network_level_address *ns;
|
||||
if (na < 8)
|
||||
na = 8;
|
||||
ns = grub_malloc (na * sizeof (ns[0]));
|
||||
ns = grub_realloc (dns_servers, na * sizeof (ns[0]));
|
||||
if (!ns)
|
||||
return grub_errno;
|
||||
dns_servers_alloc = na;
|
||||
|
|
Loading…
Reference in a new issue