summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-08-11 14:47:04 +0200
committerThomas Haller <thaller@redhat.com>2022-08-11 14:47:04 +0200
commit4b0f4f4a9d6b620b470328dc6288801f3ae50d0a (patch)
treefbc3317e213c0bb1d14828381da1c6c0e4dac3b8
parentcbf7b3546bb5d499f6b7d3bd222553447b87c6b4 (diff)
parent3d474037ad7f28a127dd9208628f4292fe4adf52 (diff)
downloadNetworkManager-4b0f4f4a9d6b620b470328dc6288801f3ae50d0a.tar.gz
n-dhcp4: re-import git-subtree for 'src/n-dhcp4'
git subtree pull --prefix src/n-dhcp4 git@github.com:nettools/n-dhcp4.git master --squash
-rw-r--r--src/n-dhcp4/src/n-dhcp4-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/n-dhcp4/src/n-dhcp4-client.c b/src/n-dhcp4/src/n-dhcp4-client.c
index 1dedbf30c8..3b4a70c802 100644
--- a/src/n-dhcp4/src/n-dhcp4-client.c
+++ b/src/n-dhcp4/src/n-dhcp4-client.c
@@ -214,8 +214,8 @@ _c_public_ void n_dhcp4_client_config_set_mac(NDhcp4ClientConfig *config, const
_c_public_ void n_dhcp4_client_config_set_broadcast_mac(NDhcp4ClientConfig *config, const uint8_t *mac, size_t n_mac) {
config->n_broadcast_mac = n_mac;
- if (n_mac > sizeof(config->mac))
- n_mac = sizeof(config->mac);
+ if (n_mac > sizeof(config->broadcast_mac))
+ n_mac = sizeof(config->broadcast_mac);
memcpy(config->broadcast_mac, mac, n_mac);
}