dhcp: fix key for dhcp options without "new_" prefix
There are none at present, but still tmp_key has to be key, not value.
This commit is contained in:
@@ -638,7 +638,7 @@ nm_dhcp_client_foreach_option (NMDHCPClient *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ignore) {
|
if (!ignore) {
|
||||||
const char *tmp_key = value;
|
const char *tmp_key = key;
|
||||||
|
|
||||||
/* Remove the "new_" prefix that dhclient passes back */
|
/* Remove the "new_" prefix that dhclient passes back */
|
||||||
if (!strncmp (key, NEW_TAG, strlen (NEW_TAG)))
|
if (!strncmp (key, NEW_TAG, strlen (NEW_TAG)))
|
||||||
|
Reference in New Issue
Block a user