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:
Jiří Klimeš
2011-10-20 18:09:42 +02:00
parent 74615ce23c
commit 29a4c359d2

View File

@@ -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)))