diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2011-10-20 18:09:42 +0200 |
---|---|---|
committer | Jiří Klimeš <jklimes@redhat.com> | 2011-10-20 18:19:22 +0200 |
commit | 7c3a3351a2c13d16ab220e75e7e206f1a13ff500 (patch) | |
tree | 33de688291fa4c22e058c06c40e9e0d722c8c7df | |
parent | 8e564972d6caee688f6f0894ce05863735ab6649 (diff) | |
download | NetworkManager-7c3a3351a2c13d16ab220e75e7e206f1a13ff500.tar.gz |
dhcp: fix key for dhcp options without "new_" prefix
There are none at present, but still tmp_key has to be key, not value.
-rw-r--r-- | src/dhcp-manager/nm-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c index 4c19b300a9..8667666222 100644 --- a/src/dhcp-manager/nm-dhcp-client.c +++ b/src/dhcp-manager/nm-dhcp-client.c @@ -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))) |