2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-23 10:01:46 +00:00
xcat-dep/yaboot/yaboot-sanedhcppriority.patch
yinle 2ac9243442 rebuild yaboot with 3.17-rc1
Former-commit-id: 1779e9889e2b6920d315dfcd54c55c254601e462
2011-06-27 14:57:19 +00:00

22 lines
1.0 KiB
Diff

--- yaboot-1.3.17-rc1/second/file.c 2010-08-05 01:04:46.000000000 -0400
+++ yaboot-1.3.17-rc1-sanedhcppriority/second/file.c 2011-05-31 02:28:30.344814639 -0400
@@ -242,16 +242,14 @@
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);
}
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);