2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-23 18:10:03 +00:00
xcat-dep/yaboot/yaboot-1.3.15-05122010-sanedhcppriority.patch

23 lines
1.2 KiB
Diff
Raw Normal View History

diff -urN yaboot-1.3.15-05122010/second/file.c yaboot-1.3.15-05122010-sanedhcppriority//second/file.c
--- yaboot-1.3.15-05122010/second/file.c 2010-05-26 18:50:03.000000000 -0400
+++ yaboot-1.3.15-05122010-sanedhcppriority//second/file.c 2010-05-26 18:51:10.000000000 -0400
@@ -237,7 +237,7 @@
switch (tag) {
case DHCP_NETMASK:
- if ((result->subnetmask == NULL || *(result->subnetmask) == '\x0') && value != 0) {
+ if (value != 0) {
result->subnetmask = ipv4_to_str(value);
DEBUG_F("Storing %s as subnetmask from options\n",
result->subnetmask);
@@ -245,8 +245,7 @@
/* FIXME: do we need to grok the subnet mask? */
break;
case DHCP_ROUTERS:
- if ((result->giaddr == NULL || *(result->giaddr) == '\x0')
- && value != 0) {
+ if (value != 0) {
result->giaddr = ipv4_to_str(value);
DEBUG_F("Storing %s as gateway from options\n",
result->giaddr);