mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 08:20:11 +01:00
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:
parent
74615ce23c
commit
29a4c359d2
1 changed files with 1 additions and 1 deletions
|
|
@ -638,7 +638,7 @@ nm_dhcp_client_foreach_option (NMDHCPClient *self,
|
|||
}
|
||||
|
||||
if (!ignore) {
|
||||
const char *tmp_key = value;
|
||||
const char *tmp_key = key;
|
||||
|
||||
/* Remove the "new_" prefix that dhclient passes back */
|
||||
if (!strncmp (key, NEW_TAG, strlen (NEW_TAG)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue