ipv4.c uses a gateway address of INADDR_NONE to represent "no gateway". It initialises the gateway address to INADDR_NONE before calling fetch_ipv4_setting() to retrieve the configured gateway address (if any). However, as of commit 612f4e7 "[settings] Avoid returning uninitialised data on error in fetch_xxx_setting()", fetch_ipv4_setting() will zero the IP address if the setting does not exist, rather than leaving it unaltered. Fix by using a zero IP address to indicate "no gateway", so that a non-existent gateway address setting will be treated as such.tags/v1.0.0-rc1
|
|
||
| 40 |
|
40 |
|
| 41 |
|
41 |
|
| 42 |
|
42 |
|
| 43 |
|
|
|
|
43 |
|
|
| 44 |
|
44 |
|
| 45 |
|
45 |
|
| 46 |
|
46 |
|
|
|
||
| 50 |
|
50 |
|
| 51 |
|
51 |
|
| 52 |
|
52 |
|
| 53 |
|
|
|
|
53 |
|
|
| 54 |
|
54 |
|
| 55 |
|
55 |
|
| 56 |
|
56 |
|
|
|
||
| 70 |
|
70 |
|
| 71 |
|
71 |
|
| 72 |
|
72 |
|
| 73 |
|
|
|
|
73 |
|
|
| 74 |
|
74 |
|
| 75 |
|
75 |
|
| 76 |
|
76 |
|
|
|
||
| 88 |
|
88 |
|
| 89 |
|
89 |
|
| 90 |
|
90 |
|
| 91 |
|
|
|
|
91 |
|
|
| 92 |
|
92 |
|
| 93 |
|
93 |
|
| 94 |
|
94 |
|
|
|
||
| 120 |
|
120 |
|
| 121 |
|
121 |
|
| 122 |
|
122 |
|
| 123 |
|
|
|
|
123 |
|
|
| 124 |
|
124 |
|
| 125 |
|
125 |
|
| 126 |
|
126 |
|
|
|
||
| 586 |
|
586 |
|
| 587 |
|
587 |
|
| 588 |
|
588 |
|
| 589 |
|
|
|
|
589 |
|
|
| 590 |
|
590 |
|
| 591 |
|
591 |
|
| 592 |
|
592 |
|
|
|
||
| 613 |
|
613 |
|
| 614 |
|
614 |
|
| 615 |
|
615 |
|
| 616 |
|
|
|
| 617 |
|
616 |
|
| 618 |
|
617 |
|
| 619 |
|
618 |
|
|
|
||
| 36 |
|
36 |
|
| 37 |
|
37 |
|
| 38 |
|
38 |
|
| 39 |
|
|
|
|
39 |
|
|
| 40 |
|
40 |
|
| 41 |
|
41 |
|
| 42 |
|
42 |
|