From 60e7bb86b8b0cf167f5f99cc293cf846d385fd0e Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 4 Jul 2025 18:31:42 +0200 Subject: [PATCH] bond: fix attribute assignment macro Currently the bug is hidden because the macro is only called with NM_SETTING_BOND_OPTION_ARP_IP_TARGET. Fixes: 45c95e9314cd ('device/bond: rework setting of arp_ip_target bond options') (cherry picked from commit 1229fe5abdc907407196fd557fee9e0a31f04c0d) --- src/core/devices/nm-device-bond.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/devices/nm-device-bond.c b/src/core/devices/nm-device-bond.c index 0915e9156a..673d236194 100644 --- a/src/core/devices/nm-device-bond.c +++ b/src/core/devices/nm-device-bond.c @@ -137,13 +137,13 @@ _set_bond_attr(NMDevice *device, const char *attr, const char *value) return ret; } -#define _set_bond_attr_take(device, attr, value) \ - G_STMT_START \ - { \ - gs_free char *_tmp = (value); \ - \ - _set_bond_attr(device, NM_SETTING_BOND_OPTION_ARP_IP_TARGET, _tmp); \ - } \ +#define _set_bond_attr_take(device, attr, value) \ + G_STMT_START \ + { \ + gs_free char *_tmp = (value); \ + \ + _set_bond_attr(device, attr, _tmp); \ + } \ G_STMT_END #define _set_bond_attr_printf(device, attr, fmt, ...) \